home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-04-10 | 37.9 KB | [TEXT/R*ch] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Apr 10 23:44:48 1995, modified Mon Apr 10 23:44:48 1995, creator BBEdit, type ASCII, 37653 bytes "Video synch" , at 0x9395 878 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [R*ch] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 56 69 64 65 6f 20 | 73 79 6e 63 68 00 00 00 |..Video |synch...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 52 2a 63 | 68 00 00 00 00 00 00 00 |.TEXTR*c|h.......|
|00000050| 00 00 00 00 00 93 15 00 | 00 03 6e ab af ab b0 ab |........|..n.....|
|00000060| af ab b0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ae 9b 00 00 |........|........|
|00000080| 56 69 64 65 6f 54 6f 6f | 6c 62 6f 78 3a 20 56 69 |VideoToo|lbox: Vi|
|00000090| 64 65 6f 20 73 79 6e 63 | 68 0d 41 70 72 69 6c 20 |deo sync|h.April |
|000000a0| 31 31 2c 20 31 39 39 35 | 0d 0d 54 68 65 20 56 69 |11, 1995|..The Vi|
|000000b0| 64 65 6f 54 6f 6f 6c 62 | 6f 78 20 61 6c 6c 6f 77 |deoToolb|ox allow|
|000000c0| 73 20 79 6f 75 20 74 6f | 20 70 72 6f 64 75 63 65 |s you to| produce|
|000000d0| 20 61 63 63 75 72 61 74 | 65 6c 79 20 63 6f 6e 74 | accurat|ely cont|
|000000e0| 72 6f 6c 6c 65 64 20 76 | 69 73 75 61 6c 20 73 74 |rolled v|isual st|
|000000f0| 69 6d 75 6c 69 2e 20 54 | 68 69 73 0d 64 6f 63 75 |imuli. T|his.docu|
|00000100| 6d 65 6e 74 20 64 65 61 | 6c 73 20 77 69 74 68 20 |ment dea|ls with |
|00000110| 74 69 6d 65 3b 20 68 6f | 77 20 74 6f 20 6d 61 6b |time; ho|w to mak|
|00000120| 65 20 73 75 72 65 20 65 | 61 63 68 20 76 69 64 65 |e sure e|ach vide|
|00000130| 6f 20 66 72 61 6d 65 20 | 73 68 6f 77 73 20 77 68 |o frame |shows wh|
|00000140| 61 74 20 79 6f 75 20 77 | 61 6e 74 2e 0d 41 66 74 |at you w|ant..Aft|
|00000150| 65 72 20 72 65 61 64 69 | 6e 67 20 74 68 69 73 20 |er readi|ng this |
|00000160| 64 6f 63 75 6d 65 6e 74 | 2c 20 79 6f 75 27 6c 6c |document|, you'll|
|00000170| 20 70 72 6f 62 61 62 6c | 79 20 77 61 6e 74 20 74 | probabl|y want t|
|00000180| 6f 20 6c 6f 6f 6b 20 61 | 74 20 74 68 65 20 61 63 |o look a|t the ac|
|00000190| 63 6f 6d 70 61 6e 79 69 | 6e 67 0d 22 56 69 64 65 |companyi|ng."Vide|
|000001a0| 6f 20 62 75 67 73 22 20 | 64 6f 63 75 6d 65 6e 74 |o bugs" |document|
|000001b0| 2c 20 61 6e 64 20 72 75 | 6e 20 74 68 65 20 22 54 |, and ru|n the "T|
|000001c0| 69 6d 65 56 69 64 65 6f | 22 20 70 72 6f 67 72 61 |imeVideo|" progra|
|000001d0| 6d 20 6f 6e 20 79 6f 75 | 72 20 4d 61 63 2c 20 74 |m on you|r Mac, t|
|000001e0| 6f 20 67 69 76 65 20 61 | 6c 6c 0d 79 6f 75 72 20 |o give a|ll.your |
|000001f0| 76 69 64 65 6f 20 63 61 | 72 64 73 20 61 20 74 68 |video ca|rds a th|
|00000200| 6f 72 6f 75 67 68 20 77 | 6f 72 6b 6f 75 74 20 61 |orough w|orkout a|
|00000210| 6e 64 20 6c 65 61 72 6e | 20 74 68 65 69 72 20 74 |nd learn| their t|
|00000220| 69 6d 69 6e 67 20 63 68 | 61 72 61 63 74 65 72 69 |iming ch|aracteri|
|00000230| 73 74 69 63 73 2e 20 49 | 66 0d 79 6f 75 20 68 61 |stics. I|f.you ha|
|00000240| 76 65 20 6d 61 6e 79 20 | 63 6f 6d 70 75 74 65 72 |ve many |computer|
|00000250| 73 2c 20 70 75 74 20 54 | 69 6d 65 56 69 64 65 6f |s, put T|imeVideo|
|00000260| 20 6f 6e 20 61 20 66 6c | 6f 70 70 79 20 61 6e 64 | on a fl|oppy and|
|00000270| 20 72 75 6e 20 69 74 20 | 66 72 6f 6d 20 74 68 65 | run it |from the|
|00000280| 20 66 6c 6f 70 70 79 20 | 6f 6e 0d 65 61 63 68 20 | floppy |on.each |
|00000290| 6d 61 63 68 69 6e 65 3b | 20 61 6c 6c 20 74 68 65 |machine;| all the|
|000002a0| 20 72 65 73 75 6c 74 73 | 20 77 69 6c 6c 20 61 63 | results| will ac|
|000002b0| 63 75 6d 75 6c 61 74 65 | 20 69 6e 20 61 20 73 69 |cumulate| in a si|
|000002c0| 6e 67 6c 65 20 72 65 70 | 6f 72 74 20 66 69 6c 65 |ngle rep|ort file|
|000002d0| 2e 20 49 20 61 6d 0d 61 | 6c 77 61 79 73 20 67 6c |. I am.a|lways gl|
|000002e0| 61 64 20 74 6f 20 72 65 | 63 65 69 76 65 20 63 6f |ad to re|ceive co|
|000002f0| 70 69 65 73 20 6f 66 20 | 74 68 65 20 54 69 6d 65 |pies of |the Time|
|00000300| 56 69 64 65 6f 20 72 65 | 70 6f 72 74 20 6f 6e 20 |Video re|port on |
|00000310| 6e 65 77 20 6d 61 63 68 | 69 6e 65 73 2e 0d 0d 4d |new mach|ines...M|
|00000320| 4f 56 49 45 53 2e 20 49 | 74 27 73 20 65 61 73 79 |OVIES. I|t's easy|
|00000330| 20 74 6f 20 73 68 6f 77 | 20 6d 6f 76 69 65 73 20 | to show| movies |
|00000340| 6f 6e 20 61 20 4d 61 63 | 2e 20 43 72 65 61 74 65 |on a Mac|. Create|
|00000350| 20 61 6c 6c 20 79 6f 75 | 72 20 47 57 6f 72 6c 64 | all you|r GWorld|
|00000360| 73 20 69 6e 20 6d 65 6d | 6f 72 79 0d 61 68 65 61 |s in mem|ory.ahea|
|00000370| 64 20 6f 66 20 74 69 6d | 65 2c 20 61 6e 64 20 74 |d of tim|e, and t|
|00000380| 68 65 6e 20 63 61 6c 6c | 20 43 6f 70 79 57 69 6e |hen call| CopyWin|
|00000390| 64 6f 77 73 28 29 20 74 | 6f 20 63 6f 70 79 20 6f |dows() t|o copy o|
|000003a0| 6e 65 20 69 6d 61 67 65 | 20 61 66 74 65 72 20 61 |ne image| after a|
|000003b0| 6e 6f 74 68 65 72 20 74 | 6f 20 74 68 65 0d 73 63 |nother t|o the.sc|
|000003c0| 72 65 65 6e 20 28 65 2e | 67 2e 20 74 72 79 20 74 |reen (e.|g. try t|
|000003d0| 68 65 20 64 65 6d 6f 73 | 20 4e 6f 69 73 65 56 42 |he demos| NoiseVB|
|000003e0| 4c 20 6f 72 20 53 61 6e | 64 53 74 6f 72 6d 29 2e |L or San|dStorm).|
|000003f0| 20 46 6f 72 20 61 6e 79 | 20 73 65 72 69 6f 75 73 | For any| serious|
|00000400| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 0d 79 6f 75 | applica|tion.you|
|00000410| 27 6c 6c 20 77 61 6e 74 | 20 61 20 72 65 61 6c 2d |'ll want| a real-|
|00000420| 74 69 6d 65 20 6d 6f 76 | 69 65 2c 20 6f 6e 65 20 |time mov|ie, one |
|00000430| 69 6d 61 67 65 20 70 65 | 72 20 76 69 64 65 6f 20 |image pe|r video |
|00000440| 66 72 61 6d 65 2c 20 73 | 6f 20 79 6f 75 27 6c 6c |frame, s|o you'll|
|00000450| 20 77 61 6e 74 20 74 6f | 20 77 61 69 74 0d 66 6f | want to| wait.fo|
|00000460| 72 20 61 20 6e 65 77 20 | 66 72 61 6d 65 20 62 65 |r a new |frame be|
|00000470| 66 6f 72 65 20 63 6f 70 | 79 69 6e 67 20 65 61 63 |fore cop|ying eac|
|00000480| 68 20 69 6d 61 67 65 2c | 20 75 73 69 6e 67 20 6f |h image,| using o|
|00000490| 6e 65 20 6f 66 20 74 68 | 65 20 73 79 6e 63 68 72 |ne of th|e synchr|
|000004a0| 6f 6e 69 7a 61 74 69 6f | 6e 0d 74 65 63 68 6e 69 |onizatio|n.techni|
|000004b0| 71 75 65 73 20 64 65 73 | 63 72 69 62 65 64 20 62 |ques des|cribed b|
|000004c0| 65 6c 6f 77 20 28 65 2e | 67 2e 20 74 72 79 20 74 |elow (e.|g. try t|
|000004d0| 68 65 20 64 65 6d 6f 20 | 4e 6f 69 73 65 56 42 4c |he demo |NoiseVBL|
|000004e0| 29 2e 20 28 49 6e 63 69 | 64 65 6e 74 61 6c 6c 79 |). (Inci|dentally|
|000004f0| 2c 20 73 6f 6d 65 0d 70 | 65 6f 70 6c 65 20 68 61 |, some.p|eople ha|
|00000500| 76 65 20 6d 69 73 74 61 | 6b 65 6e 6c 79 20 61 73 |ve mista|kenly as|
|00000510| 73 75 6d 65 64 20 74 68 | 61 74 20 70 61 67 65 20 |sumed th|at page |
|00000520| 73 77 69 74 63 68 69 6e | 67 20 69 73 20 74 68 65 |switchin|g is the|
|00000530| 20 4f 4e 4c 59 20 77 61 | 79 20 74 6f 20 61 63 68 | ONLY wa|y to ach|
|00000540| 69 65 76 65 20 61 0d 72 | 65 61 6c 2d 74 69 6d 65 |ieve a.r|eal-time|
|00000550| 20 6d 6f 76 69 65 2e 20 | 49 74 27 73 20 6e 6f 74 | movie. |It's not|
|00000560| 2e 20 56 69 64 65 6f 20 | 63 61 72 64 73 20 73 65 |. Video |cards se|
|00000570| 72 69 61 6c 6c 79 20 72 | 65 61 64 20 74 68 65 20 |rially r|ead the |
|00000580| 69 6d 61 67 65 20 70 69 | 78 65 6c 73 20 6f 6e 65 |image pi|xels one|
|00000590| 20 62 79 20 6f 6e 65 0d | 64 75 72 69 6e 67 20 6d | by one.|during m|
|000005a0| 6f 73 74 20 6f 66 20 74 | 68 65 20 66 72 61 6d 65 |ost of t|he frame|
|000005b0| 20 70 65 72 69 6f 64 2c | 20 65 2e 67 2e 20 31 35 | period,| e.g. 15|
|000005c0| 20 6d 73 2e 20 49 66 20 | 79 6f 75 72 20 63 6f 6d | ms. If |your com|
|000005d0| 70 75 74 65 72 20 73 74 | 61 72 74 73 20 77 72 69 |puter st|arts wri|
|000005e0| 74 69 6e 67 20 61 74 0d | 74 68 65 20 62 65 67 69 |ting at.|the begi|
|000005f0| 6e 6e 69 6e 67 20 6f 66 | 20 74 68 65 20 6e 65 77 |nning of| the new|
|00000600| 20 66 72 61 6d 65 20 61 | 6e 64 20 77 72 69 74 65 | frame a|nd write|
|00000610| 73 20 74 68 65 20 70 69 | 78 65 6c 73 20 66 61 73 |s the pi|xels fas|
|00000620| 74 65 72 20 74 68 61 6e | 20 74 68 65 79 27 72 65 |ter than| they're|
|00000630| 20 72 65 61 64 0d 79 6f | 75 27 6c 6c 20 64 69 73 | read.yo|u'll dis|
|00000640| 70 6c 61 79 20 61 20 77 | 68 6f 6c 65 20 6e 65 77 |play a w|hole new|
|00000650| 20 69 6d 61 67 65 20 6f | 6e 20 65 61 63 68 20 66 | image o|n each f|
|00000660| 72 61 6d 65 2e 29 20 48 | 6f 77 20 62 69 67 20 61 |rame.) H|ow big a|
|00000670| 20 6d 6f 76 69 65 20 79 | 6f 75 20 63 61 6e 20 73 | movie y|ou can s|
|00000680| 68 6f 77 20 69 6e 0d 72 | 65 61 6c 20 74 69 6d 65 |how in.r|eal time|
|00000690| 20 77 69 6c 6c 20 64 65 | 70 65 6e 64 20 6f 6e 20 | will de|pend on |
|000006a0| 68 6f 77 20 66 61 73 74 | 20 79 6f 75 72 20 70 72 |how fast| your pr|
|000006b0| 6f 63 65 73 73 6f 72 20 | 69 73 2e 20 54 69 6d 65 |ocessor |is. Time|
|000006c0| 56 69 64 65 6f 20 64 6f | 65 73 20 74 68 69 73 20 |Video do|es this |
|000006d0| 74 69 6d 69 6e 67 0d 66 | 6f 72 20 79 6f 75 2c 20 |timing.f|or you, |
|000006e0| 74 65 6c 6c 69 6e 67 20 | 79 6f 75 20 77 68 61 74 |telling |you what|
|000006f0| 20 66 72 61 63 74 69 6f | 6e 20 6f 66 20 74 68 65 | fractio|n of the|
|00000700| 20 73 63 72 65 65 6e 20 | 79 6f 75 20 63 61 6e 20 | screen |you can |
|00000710| 66 69 6c 6c 20 77 69 74 | 68 20 61 20 72 65 61 6c |fill wit|h a real|
|00000720| 2d 74 69 6d 65 0d 6d 6f | 76 69 65 2e 20 49 66 20 |-time.mo|vie. If |
|00000730| 79 6f 75 20 63 61 6e 27 | 74 20 64 6f 20 61 20 66 |you can'|t do a f|
|00000740| 75 6c 6c 2d 73 63 72 65 | 65 6e 20 6d 6f 76 69 65 |ull-scre|en movie|
|00000750| 20 61 6e 64 20 79 6f 75 | 20 6e 65 65 64 20 74 6f | and you| need to|
|00000760| 20 73 68 6f 77 20 6d 75 | 6c 74 69 70 6c 65 20 70 | show mu|ltiple p|
|00000770| 61 74 63 68 65 73 2c 0d | 63 6f 6e 73 69 64 65 72 |atches,.|consider|
|00000780| 20 73 68 6f 77 69 6e 67 | 20 73 65 76 65 72 61 6c | showing| several|
|00000790| 20 73 6d 61 6c 6c 20 6d | 6f 76 69 65 73 2c 20 75 | small m|ovies, u|
|000007a0| 70 64 61 74 69 6e 67 20 | 6f 6e 6c 79 20 74 68 65 |pdating |only the|
|000007b0| 20 64 79 6e 61 6d 69 63 | 20 70 61 72 74 73 20 6f | dynamic| parts o|
|000007c0| 66 20 74 68 65 0d 73 63 | 72 65 65 6e 2e 20 28 57 |f the.sc|reen. (W|
|000007d0| 65 20 61 73 73 75 6d 65 | 20 74 68 61 74 20 79 6f |e assume| that yo|
|000007e0| 75 20 61 72 65 20 6e 6f | 74 20 6c 69 6d 69 74 65 |u are no|t limite|
|000007f0| 64 20 62 79 20 6d 65 6d | 6f 72 79 2c 20 61 6e 64 |d by mem|ory, and|
|00000800| 20 74 68 65 72 65 66 6f | 72 65 20 64 6f 20 6e 6f | therefo|re do no|
|00000810| 74 0d 64 69 73 63 75 73 | 73 20 41 70 70 6c 65 27 |t.discus|s Apple'|
|00000820| 73 20 51 75 69 63 6b 54 | 69 6d 65 2c 20 77 68 6f |s QuickT|ime, who|
|00000830| 73 65 20 70 72 69 6e 63 | 69 70 61 6c 20 70 75 72 |se princ|ipal pur|
|00000840| 70 6f 73 65 2c 20 62 65 | 79 6f 6e 64 20 6d 61 6b |pose, be|yond mak|
|00000850| 69 6e 67 20 6d 6f 76 69 | 65 73 0d 70 6f 72 74 61 |ing movi|es.porta|
|00000860| 62 6c 65 2c 20 69 73 20 | 74 6f 20 6d 69 6e 69 6d |ble, is |to minim|
|00000870| 69 7a 65 20 73 74 6f 72 | 61 67 65 20 72 65 71 75 |ize stor|age requ|
|00000880| 69 72 65 6d 65 6e 74 73 | 20 62 79 20 75 73 69 6e |irements| by usin|
|00000890| 67 20 69 6d 61 67 65 20 | 63 6f 6d 70 72 65 73 73 |g image |compress|
|000008a0| 69 6f 6e 2e 29 20 4d 6f | 73 74 0d 4d 61 63 73 20 |ion.) Mo|st.Macs |
|000008b0| 61 63 63 65 73 73 20 62 | 75 69 6c 74 2d 69 6e 20 |access b|uilt-in |
|000008c0| 76 69 64 65 6f 20 6d 75 | 63 68 20 6d 6f 72 65 20 |video mu|ch more |
|000008d0| 71 75 69 63 6b 6c 79 20 | 74 68 61 6e 20 4e 75 42 |quickly |than NuB|
|000008e0| 75 73 20 76 69 64 65 6f | 2e 20 48 65 72 65 20 61 |us video|. Here a|
|000008f0| 72 65 20 64 61 74 61 0d | 72 61 74 65 73 20 66 6f |re data.|rates fo|
|00000900| 72 20 73 68 6f 77 69 6e | 67 20 6d 6f 76 69 65 73 |r showin|g movies|
|00000910| 20 6f 6e 20 61 20 66 65 | 77 20 6d 61 63 68 69 6e | on a fe|w machin|
|00000920| 65 73 3a 0d 09 0d 50 6f | 77 65 72 20 4d 61 63 20 |es:...Po|wer Mac |
|00000930| 37 31 30 30 2f 36 36 20 | 28 77 20 73 65 63 6f 6e |7100/66 |(w secon|
|00000940| 64 61 72 79 20 63 61 63 | 68 65 3f 29 3a 20 42 75 |dary cac|he?): Bu|
|00000950| 69 6c 74 2d 49 6e 20 56 | 52 41 4d 20 32 39 20 4d |ilt-In V|RAM 29 M|
|00000960| 42 2f 73 0d 50 6f 77 65 | 72 20 4d 61 63 20 37 31 |B/s.Powe|r Mac 71|
|00000970| 30 30 2f 36 36 20 28 77 | 2f 6f 20 73 65 63 6f 6e |00/66 (w|/o secon|
|00000980| 64 61 72 79 20 63 61 63 | 68 65 29 3a 20 42 75 69 |dary cac|he): Bui|
|00000990| 6c 74 2d 49 6e 20 56 52 | 41 4d 20 31 39 20 4d 42 |lt-In VR|AM 19 MB|
|000009a0| 2f 73 0d 50 6f 77 65 72 | 20 4d 61 63 20 38 31 30 |/s.Power| Mac 810|
|000009b0| 30 2f 38 30 3a 20 42 75 | 69 6c 74 2d 69 6e 20 56 |0/80: Bu|ilt-in V|
|000009c0| 52 41 4d 20 31 38 20 4d | 42 2f 73 2c 20 44 52 41 |RAM 18 M|B/s, DRA|
|000009d0| 4d 20 31 37 20 4d 42 2f | 73 0d 50 6f 77 65 72 20 |M 17 MB/|s.Power |
|000009e0| 4d 61 63 20 38 31 30 30 | 2f 38 30 3a 20 22 42 75 |Mac 8100|/80: "Bu|
|000009f0| 69 6c 74 2d 69 6e 20 41 | 56 22 20 31 35 20 4d 42 |ilt-in A|V" 15 MB|
|00000a00| 2f 73 0d 50 6f 77 65 72 | 20 4d 61 63 20 36 31 30 |/s.Power| Mac 610|
|00000a10| 30 2f 36 30 41 56 20 28 | 77 20 73 65 63 6f 6e 64 |0/60AV (|w second|
|00000a20| 61 72 79 20 63 61 63 68 | 65 29 3a 20 42 75 69 6c |ary cach|e): Buil|
|00000a30| 74 2d 69 6e 20 56 52 41 | 4d 20 31 32 20 4d 42 2f |t-in VRA|M 12 MB/|
|00000a40| 73 2c 20 44 52 41 4d 20 | 32 33 20 4d 42 2f 73 0d |s, DRAM |23 MB/s.|
|00000a50| 50 6f 77 65 72 20 4d 61 | 63 20 36 31 30 30 2f 36 |Power Ma|c 6100/6|
|00000a60| 30 41 56 20 28 77 2f 6f | 20 73 65 63 6f 6e 64 61 |0AV (w/o| seconda|
|00000a70| 72 79 20 63 61 63 68 65 | 29 3a 20 42 75 69 6c 74 |ry cache|): Built|
|00000a80| 2d 69 6e 20 56 52 41 4d | 20 31 31 20 4d 42 2f 73 |-in VRAM| 11 MB/s|
|00000a90| 2c 20 44 52 41 4d 20 31 | 32 20 4d 42 2f 73 0d 51 |, DRAM 1|2 MB/s.Q|
|00000aa0| 75 61 64 72 61 20 38 34 | 30 61 76 3a 20 42 75 69 |uadra 84|0av: Bui|
|00000ab0| 6c 74 2d 69 6e 20 31 32 | 20 4d 42 2f 73 2c 20 4e |lt-in 12| MB/s, N|
|00000ac0| 75 42 75 73 20 39 20 4d | 42 2f 73 0d 51 75 61 64 |uBus 9 M|B/s.Quad|
|00000ad0| 72 61 20 36 33 30 3a 20 | 42 75 69 6c 74 2d 69 6e |ra 630: |Built-in|
|00000ae0| 20 31 32 20 4d 42 2f 73 | 0d 51 75 61 64 72 61 20 | 12 MB/s|.Quadra |
|00000af0| 39 35 30 3a 20 42 75 69 | 6c 74 2d 69 6e 20 31 31 |950: Bui|lt-in 11|
|00000b00| 20 4d 42 2f 73 2c 20 4e | 75 42 75 73 20 35 20 4d | MB/s, N|uBus 5 M|
|00000b10| 42 2f 73 0d 4c 43 20 34 | 37 35 3a 20 42 75 69 6c |B/s.LC 4|75: Buil|
|00000b20| 74 2d 69 6e 20 31 30 2e | 36 20 4d 42 2f 73 0d 43 |t-in 10.|6 MB/s.C|
|00000b30| 65 6e 74 72 69 73 20 36 | 36 30 41 56 3a 20 42 75 |entris 6|60AV: Bu|
|00000b40| 69 6c 74 2d 69 6e 20 31 | 30 2e 32 20 4d 42 2f 73 |ilt-in 1|0.2 MB/s|
|00000b50| 0d 51 75 61 64 72 61 20 | 36 36 30 41 56 3a 20 42 |.Quadra |660AV: B|
|00000b60| 75 69 6c 74 2d 69 6e 20 | 39 2e 36 20 4d 42 2f 73 |uilt-in |9.6 MB/s|
|00000b70| 0d 51 75 61 64 72 61 20 | 39 30 30 3a 20 42 75 69 |.Quadra |900: Bui|
|00000b80| 6c 74 2d 69 6e 20 39 2e | 35 20 4d 42 2f 73 2c 20 |lt-in 9.|5 MB/s, |
|00000b90| 4e 75 42 75 73 20 35 2e | 35 20 4d 42 2f 73 0d 43 |NuBus 5.|5 MB/s.C|
|00000ba0| 65 6e 74 72 69 73 20 36 | 35 30 3a 20 42 75 69 6c |entris 6|50: Buil|
|00000bb0| 74 2d 69 6e 20 20 35 2e | 38 20 20 4d 42 2f 73 20 |t-in 5.|8 MB/s |
|00000bc0| 20 20 20 20 0d 4c 43 20 | 49 49 49 3a 20 42 75 69 | .LC |III: Bui|
|00000bd0| 6c 74 2d 69 6e 20 20 35 | 2e 38 20 20 4d 42 2f 73 |lt-in 5|.8 MB/s|
|00000be0| 20 20 20 20 20 0d 49 49 | 63 69 3a 20 42 75 69 6c | .II|ci: Buil|
|00000bf0| 74 2d 69 6e 20 35 2e 35 | 20 4d 42 2f 73 2c 20 4e |t-in 5.5| MB/s, N|
|00000c00| 75 42 75 73 20 33 2e 37 | 20 4d 42 2f 73 0d 49 49 |uBus 3.7| MB/s.II|
|00000c10| 20 77 69 74 68 20 52 6f | 63 6b 65 74 20 36 38 30 | with Ro|cket 680|
|00000c20| 34 30 20 61 63 63 65 6c | 65 72 61 74 6f 72 3a 20 |40 accel|erator: |
|00000c30| 4e 75 42 75 73 20 34 2e | 30 20 4d 42 2f 73 0d 50 |NuBus 4.|0 MB/s.P|
|00000c40| 6f 77 65 72 42 6f 6f 6b | 20 35 32 30 2f 35 34 30 |owerBook| 520/540|
|00000c50| 3a 20 33 2e 36 20 4d 42 | 2f 73 0d 49 49 66 78 3a |: 3.6 MB|/s.IIfx:|
|00000c60| 20 4e 75 42 75 73 20 33 | 2e 30 20 4d 42 2f 73 20 | NuBus 3|.0 MB/s |
|00000c70| 28 38 a5 32 34 47 43 20 | 22 61 63 63 65 6c 65 72 |(8.24GC |"acceler|
|00000c80| 61 74 69 6f 6e 22 20 72 | 65 64 75 63 65 73 20 69 |ation" r|educes i|
|00000c90| 74 20 31 2e 35 20 4d 42 | 2f 73 29 0d 50 6f 77 65 |t 1.5 MB|/s).Powe|
|00000ca0| 72 42 6f 6f 6b 20 31 36 | 30 3a 20 42 75 69 6c 74 |rBook 16|0: Built|
|00000cb0| 2d 69 6e 20 4c 43 44 20 | 73 63 72 65 65 6e 20 61 |-in LCD |screen a|
|00000cc0| 6e 64 20 76 69 64 65 6f | 20 70 6f 72 74 20 33 2e |nd video| port 3.|
|00000cd0| 30 20 4d 42 2f 73 0d 49 | 49 63 78 3a 20 4e 75 42 |0 MB/s.I|Icx: NuB|
|00000ce0| 75 73 20 32 2e 37 20 4d | 42 2f 73 0d 49 49 3a 20 |us 2.7 M|B/s.II: |
|00000cf0| 4e 75 42 75 73 20 32 2e | 37 20 4d 42 2f 73 0d 4c |NuBus 2.|7 MB/s.L|
|00000d00| 43 20 49 49 3a 20 42 75 | 69 6c 74 2d 69 6e 20 20 |C II: Bu|ilt-in |
|00000d10| 32 20 20 4d 42 2f 73 20 | 20 20 20 20 0d 50 6f 77 |2 MB/s | .Pow|
|00000d20| 65 72 42 6f 6f 6b 20 31 | 37 30 3a 20 42 75 69 6c |erBook 1|70: Buil|
|00000d30| 74 2d 69 6e 20 4c 43 44 | 20 73 63 72 65 65 6e 20 |t-in LCD| screen |
|00000d40| 31 2e 36 20 4d 42 2f 73 | 2c 20 53 43 53 49 20 52 |1.6 MB/s|, SCSI R|
|00000d50| 61 64 69 75 73 20 50 6f | 77 65 72 56 69 65 77 20 |adius Po|werView |
|00000d60| 31 20 4d 42 2f 73 0d 43 | 6c 61 73 73 69 63 3a 20 |1 MB/s.C|lassic: |
|00000d70| 42 75 69 6c 74 2d 69 6e | 20 31 2e 37 20 4d 42 2f |Built-in| 1.7 MB/|
|00000d80| 73 0d 43 6c 61 73 73 69 | 63 20 49 49 3a 20 20 42 |s.Classi|c II: B|
|00000d90| 75 69 6c 74 2d 69 6e 20 | 31 2e 34 20 4d 42 2f 73 |uilt-in |1.4 MB/s|
|00000da0| 0d 53 45 3a 20 42 75 69 | 6c 74 2d 69 6e 20 30 2e |.SE: Bui|lt-in 0.|
|00000db0| 39 20 4d 42 2f 73 0d 50 | 6c 75 73 3a 20 42 75 69 |9 MB/s.P|lus: Bui|
|00000dc0| 6c 74 2d 69 6e 20 30 2e | 36 20 4d 42 2f 73 0d 54 |lt-in 0.|6 MB/s.T|
|00000dd0| 68 65 20 71 75 6f 74 65 | 64 20 72 61 74 65 20 69 |he quote|d rate i|
|00000de0| 73 20 74 68 65 20 62 65 | 73 74 2c 20 61 63 72 6f |s the be|st, acro|
|00000df0| 73 73 20 61 6c 6c 20 70 | 69 78 65 6c 20 64 65 70 |ss all p|ixel dep|
|00000e00| 74 68 73 20 61 6e 64 20 | 61 63 72 6f 73 73 20 43 |ths and |across C|
|00000e10| 6f 70 79 42 69 74 73 20 | 61 6e 64 0d 43 6f 70 79 |opyBits |and.Copy|
|00000e20| 42 69 74 73 51 75 69 63 | 6b 6c 79 2c 20 77 68 69 |BitsQuic|kly, whi|
|00000e30| 63 68 20 61 72 65 20 75 | 73 75 61 6c 6c 79 20 77 |ch are u|sually w|
|00000e40| 69 74 68 69 6e 20 2b 2f | 2d 32 30 25 20 6f 66 20 |ithin +/|-20% of |
|00000e50| 65 61 63 68 20 6f 74 68 | 65 72 2e 20 20 43 6f 70 |each oth|er. Cop|
|00000e60| 79 42 69 74 73 2c 20 62 | 65 69 6e 67 0d 70 61 72 |yBits, b|eing.par|
|00000e70| 74 20 6f 66 20 51 75 69 | 63 6b 44 72 61 77 2c 20 |t of Qui|ckDraw, |
|00000e80| 61 6c 77 61 79 73 20 72 | 75 6e 73 20 6e 61 74 69 |always r|uns nati|
|00000e90| 76 65 20 6f 6e 20 74 68 | 65 20 50 6f 77 65 72 50 |ve on th|e PowerP|
|00000ea0| 43 2e 20 53 75 72 70 72 | 69 73 69 6e 67 6c 79 2c |C. Surpr|isingly,|
|00000eb0| 20 50 6f 77 65 72 50 43 | 0d 6e 61 74 69 76 65 20 | PowerPC|.native |
|00000ec0| 73 70 65 65 64 20 6f 66 | 20 43 6f 70 79 42 69 74 |speed of| CopyBit|
|00000ed0| 73 51 75 69 63 6b 6c 79 | 20 69 73 20 6f 6e 6c 79 |sQuickly| is only|
|00000ee0| 20 61 62 6f 75 74 20 31 | 30 25 20 68 69 67 68 65 | about 1|0% highe|
|00000ef0| 72 20 74 68 61 6e 20 65 | 6d 75 6c 61 74 65 64 20 |r than e|mulated |
|00000f00| 73 70 65 65 64 2e 0d 48 | 6f 77 65 76 65 72 2c 20 |speed..H|owever, |
|00000f10| 20 43 6f 70 79 42 69 74 | 73 51 75 69 63 6b 6c 79 | CopyBit|sQuickly|
|00000f20| 20 69 73 20 61 6e 20 75 | 6e 75 73 75 61 6c 20 70 | is an u|nusual p|
|00000f30| 72 6f 67 72 61 6d 2c 20 | 77 69 74 68 20 75 6e 72 |rogram, |with unr|
|00000f40| 6f 6c 6c 65 64 20 6c 6f | 6f 70 73 20 61 6e 64 20 |olled lo|ops and |
|00000f50| 6f 74 68 65 72 0d 74 72 | 69 63 6b 73 20 74 6f 20 |other.tr|icks to |
|00000f60| 6d 61 78 69 6d 69 7a 65 | 20 73 70 65 65 64 2e 20 |maximize| speed. |
|00000f70| 4f 6e 20 74 68 65 20 6f | 74 68 65 72 20 68 61 6e |On the o|ther han|
|00000f80| 64 2c 20 6e 6f 74 65 20 | 74 68 65 20 72 65 6d 61 |d, note |the rema|
|00000f90| 72 6b 61 62 6c 65 20 64 | 6f 75 62 6c 69 6e 67 20 |rkable d|oubling |
|00000fa0| 6f 66 0d 44 52 41 4d 20 | 76 69 64 65 6f 20 73 70 |of.DRAM |video sp|
|00000fb0| 65 65 64 20 28 61 6e 64 | 20 31 30 25 20 69 6e 63 |eed (and| 10% inc|
|00000fc0| 72 65 61 73 65 20 6f 66 | 20 56 52 41 4d 20 73 70 |rease of| VRAM sp|
|00000fd0| 65 65 64 29 20 64 75 65 | 20 74 6f 20 69 6e 73 74 |eed) due| to inst|
|00000fe0| 61 6c 6c 61 74 69 6f 6e | 20 6f 66 20 74 68 65 0d |allation| of the.|
|00000ff0| 73 65 63 6f 6e 64 61 72 | 79 20 63 61 63 68 65 2e |secondar|y cache.|
|00001000| 20 28 44 6f 65 73 20 61 | 6e 79 6f 6e 65 20 6b 6e | (Does a|nyone kn|
|00001010| 6f 77 20 68 6f 77 20 54 | 69 6d 65 56 69 64 65 6f |ow how T|imeVideo|
|00001020| 20 6d 69 67 68 74 20 64 | 65 74 65 72 6d 69 6e 65 | might d|etermine|
|00001030| 20 77 68 65 74 68 65 72 | 20 61 0d 73 65 63 6f 6e | whether| a.secon|
|00001040| 64 61 72 79 20 63 61 63 | 68 65 20 69 73 20 69 6e |dary cac|he is in|
|00001050| 73 74 61 6c 6c 65 64 3f | 29 0d 0d 50 6f 77 65 72 |stalled?|)..Power|
|00001060| 20 4d 61 63 20 37 31 30 | 30 20 4e 75 42 75 73 20 | Mac 710|0 NuBus |
|00001070| 62 75 67 3a 20 4d 69 63 | 68 61 65 6c 20 45 63 6b |bug: Mic|hael Eck|
|00001080| 65 72 74 20 28 6d 65 63 | 6b 65 72 74 40 65 65 2e |ert (mec|kert@ee.|
|00001090| 75 74 73 2e 65 64 75 2e | 61 75 29 20 77 72 69 74 |uts.edu.|au) writ|
|000010a0| 65 73 2c 20 22 46 72 6f | 6d 0d 77 68 61 74 20 49 |es, "Fro|m.what I|
|000010b0| 20 75 6e 64 65 72 73 74 | 61 6e 64 2c 20 61 20 62 | underst|and, a b|
|000010c0| 75 67 20 69 6e 20 74 68 | 65 20 37 31 30 30 27 73 |ug in th|e 7100's|
|000010d0| 20 4e 75 42 75 73 20 69 | 6e 74 65 72 66 61 63 65 | NuBus i|nterface|
|000010e0| 20 63 68 69 70 20 6c 69 | 6d 69 74 73 20 74 68 65 | chip li|mits the|
|000010f0| 20 74 68 72 6f 75 67 68 | 70 75 74 0d 6f 66 20 74 | through|put.of t|
|00001100| 68 65 20 4e 75 42 75 73 | 20 70 6f 72 74 2e 20 54 |he NuBus| port. T|
|00001110| 68 69 73 20 64 6f 65 73 | 20 6e 6f 74 20 61 66 66 |his does| not aff|
|00001120| 65 63 74 20 62 75 69 6c | 74 2d 69 6e 20 56 52 41 |ect buil|t-in VRA|
|00001130| 4d 20 76 69 64 65 6f 20 | 6f 72 20 44 52 41 4d 20 |M video |or DRAM |
|00001140| 76 69 64 65 6f 20 28 74 | 68 65 20 41 56 0d 6f 70 |video (t|he AV.op|
|00001150| 74 69 6f 6e 2c 20 69 6e | 20 50 44 53 20 73 6c 6f |tion, in| PDS slo|
|00001160| 74 29 2e 20 54 68 69 73 | 20 62 75 67 20 61 66 66 |t). This| bug aff|
|00001170| 65 63 74 73 20 6f 6e 6c | 79 20 74 68 65 20 37 31 |ects onl|y the 71|
|00001180| 30 30 20 28 6e 6f 74 20 | 38 31 30 30 29 2c 20 61 |00 (not |8100), a|
|00001190| 6e 64 20 69 73 20 73 75 | 70 70 6f 73 65 64 0d 74 |nd is su|pposed.t|
|000011a0| 6f 20 62 65 20 66 69 78 | 65 64 20 64 75 72 69 6e |o be fix|ed durin|
|000011b0| 67 20 74 68 65 20 6e 65 | 78 74 20 72 65 6c 65 61 |g the ne|xt relea|
|000011c0| 73 65 20 6f 66 20 74 68 | 65 20 6d 61 63 68 69 6e |se of th|e machin|
|000011d0| 65 73 2e 22 20 4f 63 74 | 6f 62 65 72 20 31 32 2c |es." Oct|ober 12,|
|000011e0| 20 31 39 39 34 2e 0d 20 | 0d 53 50 52 49 54 45 53 | 1994.. |.SPRITES|
|000011f0| 2e 20 49 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |. If you| want to|
|00001200| 20 73 68 6f 77 20 6f 62 | 6a 65 63 74 73 20 6d 6f | show ob|jects mo|
|00001210| 76 69 6e 67 20 61 72 6f | 75 6e 64 20 74 68 65 20 |ving aro|und the |
|00001220| 73 63 72 65 65 6e 2c 20 | 61 6e 64 20 79 6f 75 72 |screen, |and your|
|00001230| 0d 63 6f 6d 70 75 74 65 | 72 20 69 73 6e 27 74 20 |.compute|r isn't |
|00001240| 66 61 73 74 20 65 6e 6f | 75 67 68 20 74 6f 20 64 |fast eno|ugh to d|
|00001250| 6f 20 61 20 66 75 6c 6c | 20 73 63 72 65 65 6e 20 |o a full| screen |
|00001260| 6d 6f 76 69 65 2c 20 74 | 68 65 6e 20 79 6f 75 20 |movie, t|hen you |
|00001270| 6d 61 79 20 77 61 6e 74 | 20 74 6f 0d 61 6e 69 6d |may want| to.anim|
|00001280| 61 74 65 20 6a 75 73 74 | 20 74 68 65 20 6f 62 6a |ate just| the obj|
|00001290| 65 63 74 73 2e 20 4f 62 | 6a 65 63 74 73 20 61 6e |ects. Ob|jects an|
|000012a0| 69 6d 61 74 65 64 20 69 | 6e 20 74 68 69 73 20 77 |imated i|n this w|
|000012b0| 61 79 20 61 72 65 20 63 | 61 6c 6c 65 64 20 22 73 |ay are c|alled "s|
|000012c0| 70 72 69 74 65 73 22 2e | 0d 54 6f 6e 79 20 4d 79 |prites".|.Tony My|
|000012d0| 6c 65 73 20 68 61 73 20 | 70 75 62 6c 69 73 68 65 |les has |publishe|
|000012e0| 64 20 61 20 70 61 63 6b | 61 67 65 20 63 61 6c 6c |d a pack|age call|
|000012f0| 65 64 20 22 53 70 72 69 | 74 65 57 6f 72 6c 64 22 |ed "Spri|teWorld"|
|00001300| 20 74 68 61 74 20 79 6f | 75 20 6d 61 79 20 77 61 | that yo|u may wa|
|00001310| 6e 74 20 74 6f 0d 64 6f | 77 6e 6c 6f 61 64 20 66 |nt to.do|wnload f|
|00001320| 72 6f 6d 20 69 6e 66 6f | 2d 6d 61 63 2f 44 65 76 |rom info|-mac/Dev|
|00001330| 65 6c 6f 70 6d 65 6e 74 | 2e 20 28 46 6f 72 20 61 |elopment|. (For a|
|00001340| 6e 20 65 78 70 6c 61 6e | 61 74 69 6f 6e 20 6f 66 |n explan|ation of|
|00001350| 20 68 6f 77 20 74 6f 20 | 64 6f 20 74 68 61 74 2c | how to |do that,|
|00001360| 20 72 65 61 64 0d 74 68 | 65 20 56 69 64 65 6f 54 | read.th|e VideoT|
|00001370| 6f 6f 6c 62 6f 78 20 22 | 41 64 76 69 63 65 22 20 |oolbox "|Advice" |
|00001380| 64 6f 63 75 6d 65 6e 74 | 2e 29 0d 0d 50 41 47 45 |document|.)..PAGE|
|00001390| 20 53 57 49 54 43 48 49 | 4e 47 2e 20 4d 61 6e 79 | SWITCHI|NG. Many|
|000013a0| 20 76 69 64 65 6f 20 63 | 61 72 64 73 20 68 61 76 | video c|ards hav|
|000013b0| 65 20 6d 75 6c 74 69 70 | 6c 65 20 76 69 64 65 6f |e multip|le video|
|000013c0| 20 70 61 67 65 73 3b 20 | 63 68 65 63 6b 20 79 6f | pages; |check yo|
|000013d0| 75 72 20 54 69 6d 65 56 | 69 64 65 6f 0d 72 65 70 |ur TimeV|ideo.rep|
|000013e0| 6f 72 74 2c 20 6f 72 20 | 63 61 6c 6c 20 47 44 47 |ort, or |call GDG|
|000013f0| 65 74 50 61 67 65 43 6e | 74 28 29 2e 20 4e 6f 72 |etPageCn|t(). Nor|
|00001400| 6d 61 6c 6c 79 20 74 68 | 65 20 4d 61 63 69 6e 74 |mally th|e Macint|
|00001410| 6f 73 68 20 6f 6e 6c 79 | 20 75 73 65 73 20 70 61 |osh only| uses pa|
|00001420| 67 65 20 30 2c 20 62 75 | 74 20 69 66 0d 79 6f 75 |ge 0, bu|t if.you|
|00001430| 20 68 61 76 65 20 6d 75 | 6c 74 69 70 6c 65 20 70 | have mu|ltiple p|
|00001440| 61 67 65 73 2c 20 74 68 | 65 79 20 63 61 6e 20 62 |ages, th|ey can b|
|00001450| 65 20 73 77 69 74 63 68 | 65 64 20 62 79 20 63 61 |e switch|ed by ca|
|00001460| 6c 6c 69 6e 67 20 47 44 | 53 65 74 50 61 67 65 53 |lling GD|SetPageS|
|00001470| 68 6f 77 6e 28 29 20 61 | 6e 64 0d 47 44 53 65 74 |hown() a|nd.GDSet|
|00001480| 50 61 67 65 44 72 61 77 | 6e 28 29 2e 20 54 68 69 |PageDraw|n(). Thi|
|00001490| 73 20 63 6f 75 6c 64 20 | 62 65 20 75 73 65 64 20 |s could |be used |
|000014a0| 74 6f 20 73 68 6f 77 20 | 76 65 72 79 20 73 68 6f |to show |very sho|
|000014b0| 72 74 20 66 75 6c 6c 2d | 73 63 72 65 65 6e 20 6d |rt full-|screen m|
|000014c0| 6f 76 69 65 73 2c 20 65 | 2e 67 2e 0d 61 6c 74 65 |ovies, e|.g..alte|
|000014d0| 72 6e 61 74 69 6e 67 20 | 74 77 6f 20 69 6d 61 67 |rnating |two imag|
|000014e0| 65 73 2e 20 54 68 69 73 | 20 6d 69 67 68 74 20 62 |es. This| might b|
|000014f0| 65 20 61 6e 20 65 66 66 | 65 63 74 69 76 65 20 77 |e an eff|ective w|
|00001500| 61 79 20 74 6f 20 73 68 | 6f 77 20 6c 61 72 67 65 |ay to sh|ow large|
|00001510| 20 73 6c 6f 77 0d 6d 6f | 76 69 65 73 2c 20 74 61 | slow.mo|vies, ta|
|00001520| 6b 69 6e 67 20 73 65 76 | 65 72 61 6c 20 66 72 61 |king sev|eral fra|
|00001530| 6d 65 73 20 74 6f 20 6c | 6f 61 64 20 65 61 63 68 |mes to l|oad each|
|00001540| 20 6e 65 77 20 69 6d 61 | 67 65 20 74 6f 20 61 6e | new ima|ge to an|
|00001550| 20 75 6e 73 65 65 6e 20 | 70 61 67 65 20 74 68 61 | unseen |page tha|
|00001560| 74 27 73 0d 69 6e 73 74 | 61 6e 74 6c 79 20 73 77 |t's.inst|antly sw|
|00001570| 61 70 70 65 64 20 69 6e | 20 77 68 65 6e 20 69 74 |apped in| when it|
|00001580| 27 73 20 66 75 6c 6c 2e | 20 20 28 54 68 65 20 6e |'s full.| (The n|
|00001590| 75 6d 62 65 72 20 6f 66 | 20 70 61 67 65 73 20 61 |umber of| pages a|
|000015a0| 76 61 69 6c 61 62 6c 65 | 20 64 65 70 65 6e 64 73 |vailable| depends|
|000015b0| 20 6f 6e 0d 74 68 65 20 | 70 69 78 65 6c 20 73 69 | on.the |pixel si|
|000015c0| 7a 65 2e 20 49 6e 20 6d | 61 78 20 64 65 70 74 68 |ze. In m|ax depth|
|000015d0| 20 74 68 65 72 65 27 73 | 20 61 6c 77 61 79 73 20 | there's| always |
|000015e0| 6f 6e 6c 79 20 6f 6e 65 | 20 70 61 67 65 2e 20 49 |only one| page. I|
|000015f0| 6e 20 6c 65 73 73 65 72 | 20 64 65 70 74 68 73 0d |n lesser| depths.|
|00001600| 74 68 65 72 65 27 73 20 | 75 6e 75 73 65 64 20 6d |there's |unused m|
|00001610| 65 6d 6f 72 79 2c 20 77 | 68 69 63 68 20 74 68 65 |emory, w|hich the|
|00001620| 20 76 69 64 65 6f 20 64 | 72 69 76 65 72 20 6d 61 | video d|river ma|
|00001630| 79 20 6d 61 6b 65 20 61 | 76 61 69 6c 61 62 6c 65 |y make a|vailable|
|00001640| 20 61 73 20 65 78 74 72 | 61 0d 70 61 67 65 73 2e | as extr|a.pages.|
|00001650| 29 20 53 65 72 67 65 69 | 20 41 2e 4b 75 72 6b 69 |) Sergei| A.Kurki|
|00001660| 6e 2c 20 4b 75 72 6b 69 | 6e 40 6d 65 64 2e 68 6f |n, Kurki|n@med.ho|
|00001670| 6b 75 64 61 69 2e 61 63 | 2e 6a 70 2c 20 68 61 73 |kudai.ac|.jp, has|
|00001680| 20 22 74 65 73 74 65 64 | 20 47 44 53 65 74 50 61 | "tested| GDSetPa|
|00001690| 67 65 44 72 61 77 6e 28 | 29 0d 61 6e 64 20 47 44 |geDrawn(|).and GD|
|000016a0| 53 65 74 50 61 67 65 53 | 68 6f 77 6e 28 29 2c 20 |SetPageS|hown(), |
|000016b0| 61 6e 64 20 74 68 65 79 | 20 73 65 65 6d 20 74 6f |and they| seem to|
|000016c0| 20 77 6f 72 6b 20 4f 4b | 2e 22 20 0d 0d 43 4c 55 | work OK|." ..CLU|
|000016d0| 54 20 28 43 6f 6c 6f 72 | 20 4c 6f 6f 6b 75 70 20 |T (Color| Lookup |
|000016e0| 54 61 62 6c 65 29 20 41 | 4e 49 4d 41 54 49 4f 4e |Table) A|NIMATION|
|000016f0| 2e 20 4d 6f 73 74 20 76 | 69 64 65 6f 20 63 61 72 |. Most v|ideo car|
|00001700| 64 73 20 68 61 76 65 20 | 61 20 68 61 72 64 77 61 |ds have |a hardwa|
|00001710| 72 65 20 63 6f 6c 6f 72 | 0d 6c 6f 6f 6b 75 70 20 |re color|.lookup |
|00001720| 74 61 62 6c 65 20 28 63 | 6c 75 74 29 20 74 68 61 |table (c|lut) tha|
|00001730| 74 20 64 79 6e 61 6d 69 | 63 61 6c 6c 79 20 74 72 |t dynami|cally tr|
|00001740| 61 6e 73 66 6f 72 6d 73 | 20 65 61 63 68 20 70 69 |ansforms| each pi|
|00001750| 78 65 6c 20 74 6f 20 61 | 20 63 6f 6c 6f 72 20 28 |xel to a| color (|
|00001760| 61 6e 20 52 47 42 0d 74 | 72 69 70 6c 65 74 29 20 |an RGB.t|riplet) |
|00001770| 74 68 61 74 20 69 73 20 | 73 65 6e 74 20 74 6f 20 |that is |sent to |
|00001780| 74 68 65 20 64 69 67 69 | 74 61 6c 20 74 6f 20 61 |the digi|tal to a|
|00001790| 6e 61 6c 6f 67 20 63 6f | 6e 76 65 72 74 65 72 73 |nalog co|nverters|
|000017a0| 2e 20 54 65 6d 70 6f 72 | 61 6c 20 6d 6f 64 75 6c |. Tempor|al modul|
|000017b0| 61 74 69 6f 6e 0d 28 65 | 2e 67 2e 20 66 6c 69 63 |ation.(e|.g. flic|
|000017c0| 6b 65 72 20 6f 72 20 66 | 61 64 69 6e 67 20 6f 6e |ker or f|ading on|
|000017d0| 20 61 6e 64 20 6f 66 66 | 29 20 6f 66 20 76 69 73 | and off|) of vis|
|000017e0| 75 61 6c 20 73 74 69 6d | 75 6c 69 20 63 61 6e 20 |ual stim|uli can |
|000017f0| 62 65 20 61 63 68 69 65 | 76 65 64 20 76 65 72 79 |be achie|ved very|
|00001800| 0d 63 6f 6e 76 65 6e 69 | 65 6e 74 6c 79 20 62 79 |.conveni|ently by|
|00001810| 20 6c 6f 61 64 69 6e 67 | 20 61 20 6e 65 77 20 63 | loading| a new c|
|00001820| 6c 75 74 20 6f 6e 20 65 | 61 63 68 20 66 72 61 6d |lut on e|ach fram|
|00001830| 65 2e 20 4c 6f 6f 6b 20 | 61 74 20 74 68 65 20 64 |e. Look |at the d|
|00001840| 65 6d 6f 0d 46 6c 69 63 | 6b 65 72 69 6e 67 47 72 |emo.Flic|keringGr|
|00001850| 61 74 69 6e 67 2e 20 48 | 6f 77 65 76 65 72 2c 20 |ating. H|owever, |
|00001860| 6e 6f 74 20 61 6c 6c 20 | 76 69 64 65 6f 20 63 61 |not all |video ca|
|00001870| 72 64 20 64 72 69 76 65 | 72 73 20 61 72 65 20 66 |rd drive|rs are f|
|00001880| 61 73 74 20 65 6e 6f 75 | 67 68 20 74 6f 0d 61 63 |ast enou|gh to.ac|
|00001890| 68 69 65 76 65 20 74 68 | 69 73 2e 20 28 55 73 75 |hieve th|is. (Usu|
|000018a0| 61 6c 6c 79 20 74 68 69 | 73 20 69 73 20 6e 6f 74 |ally thi|s is not|
|000018b0| 20 61 20 68 61 72 64 77 | 61 72 65 20 6c 69 6d 69 | a hardw|are limi|
|000018c0| 74 61 74 69 6f 6e 3b 20 | 69 74 27 73 20 63 72 75 |tation; |it's cru|
|000018d0| 6d 62 79 20 64 72 69 76 | 65 72 0d 73 6f 66 74 77 |mby driv|er.softw|
|000018e0| 61 72 65 2e 29 20 52 75 | 6e 20 54 69 6d 65 56 69 |are.) Ru|n TimeVi|
|000018f0| 64 65 6f 20 74 6f 20 66 | 69 6e 64 20 6f 75 74 20 |deo to f|ind out |
|00001900| 66 6f 72 20 73 75 72 65 | 3b 20 69 74 20 64 65 74 |for sure|; it det|
|00001910| 65 72 6d 69 6e 65 73 20 | 68 6f 77 20 6d 61 6e 79 |ermines |how many|
|00001920| 20 66 72 61 6d 65 73 20 | 69 74 0d 74 61 6b 65 73 | frames |it.takes|
|00001930| 20 65 69 74 68 65 72 20 | 47 44 53 65 74 45 6e 74 | either |GDSetEnt|
|00001940| 72 69 65 73 20 6f 72 20 | 53 65 74 45 6e 74 72 69 |ries or |SetEntri|
|00001950| 65 73 51 75 69 63 6b 6c | 79 20 74 6f 20 6c 6f 61 |esQuickl|y to loa|
|00001960| 64 20 74 68 65 20 63 6c | 75 74 2e 20 54 68 65 20 |d the cl|ut. The |
|00001970| 63 6c 75 74 20 69 73 0d | 61 6c 73 6f 20 75 73 65 |clut is.|also use|
|00001980| 64 20 66 6f 72 20 67 61 | 6d 6d 61 20 63 6f 72 72 |d for ga|mma corr|
|00001990| 65 63 74 69 6f 6e 2e 20 | 41 70 70 6c 65 27 73 20 |ection. |Apple's |
|000019a0| 70 72 6f 76 69 73 69 6f | 6e 20 66 6f 72 20 67 61 |provisio|n for ga|
|000019b0| 6d 6d 61 20 63 6f 72 72 | 65 63 74 69 6f 6e 20 69 |mma corr|ection i|
|000019c0| 73 0d 73 6f 6d 65 77 68 | 61 74 20 63 72 75 64 65 |s.somewh|at crude|
|000019d0| 3b 20 66 6f 72 20 74 68 | 65 20 75 74 6d 6f 73 74 |; for th|e utmost|
|000019e0| 20 6c 75 6d 69 6e 61 6e | 63 65 20 61 63 63 75 72 | luminan|ce accur|
|000019f0| 61 63 79 20 79 6f 75 20 | 6d 61 79 20 77 69 73 68 |acy you |may wish|
|00001a00| 20 74 6f 20 75 73 65 20 | 74 68 65 0d 4c 75 6d 69 | to use |the.Lumi|
|00001a10| 6e 61 6e 63 65 2e 63 20 | 72 6f 75 74 69 6e 65 73 |nance.c |routines|
|00001a20| 2e 20 53 65 65 20 73 65 | 63 74 69 6f 6e 20 42 2c |. See se|ction B,|
|00001a30| 20 62 65 6c 6f 77 2e 0d | 0d 43 4f 4c 4f 52 20 43 | below..|.COLOR C|
|00001a40| 59 43 4c 49 4e 47 2e 20 | 42 61 72 74 20 46 61 72 |YCLING. |Bart Far|
|00001a50| 65 6c 6c 2c 20 42 61 72 | 74 5f 46 61 72 65 6c 6c |ell, Bar|t_Farell|
|00001a60| 40 69 73 72 2e 73 79 72 | 2e 65 64 75 2c 20 77 72 |@isr.syr|.edu, wr|
|00001a70| 69 74 65 73 2c 20 22 49 | 74 27 73 20 65 61 73 79 |ites, "I|t's easy|
|00001a80| 20 74 6f 20 64 6f 0d 63 | 6f 6c 6f 72 20 63 79 63 | to do.c|olor cyc|
|00001a90| 6c 69 6e 67 20 75 73 69 | 6e 67 20 65 69 74 68 65 |ling usi|ng eithe|
|00001aa0| 72 20 47 44 53 65 74 45 | 6e 74 72 69 65 73 20 6f |r GDSetE|ntries o|
|00001ab0| 72 20 53 65 74 45 6e 74 | 72 69 65 73 51 75 69 63 |r SetEnt|riesQuic|
|00001ac0| 6b 6c 79 2c 20 65 2e 67 | 2e 0d 09 47 44 53 65 74 |kly, e.g|...GDSet|
|00001ad0| 45 6e 74 72 69 65 73 28 | 64 65 76 69 63 65 2c 73 |Entries(|device,s|
|00001ae0| 74 61 72 74 2c 63 6f 75 | 6e 74 2c 74 61 62 6c 65 |tart,cou|nt,table|
|00001af0| 2b 6f 66 66 73 65 74 29 | 3b 0d 46 69 72 73 74 20 |+offset)|;.First |
|00001b00| 63 72 65 61 74 65 20 61 | 20 64 6f 75 62 6c 65 2d |create a| double-|
|00001b10| 73 69 7a 65 64 20 43 6f | 6c 6f 72 53 70 65 63 20 |sized Co|lorSpec |
|00001b20| 61 72 72 61 79 2c 20 65 | 2e 67 2e 2c 20 61 6e 20 |array, e|.g., an |
|00001b30| 61 72 72 61 79 20 6f 66 | 20 35 31 32 20 69 6e 73 |array of| 512 ins|
|00001b40| 74 65 61 64 20 6f 66 0d | 32 35 36 2e 20 49 74 27 |tead of.|256. It'|
|00001b50| 73 20 63 61 6c 6c 65 64 | 20 22 74 61 62 6c 65 22 |s called| "table"|
|00001b60| 20 69 6e 20 74 68 65 20 | 61 62 6f 76 65 20 65 78 | in the |above ex|
|00001b70| 61 6d 70 6c 65 2e 20 53 | 65 74 20 75 70 20 74 68 |ample. S|et up th|
|00001b80| 65 20 73 65 63 6f 6e 64 | 20 68 61 6c 66 20 6f 66 |e second| half of|
|00001b90| 20 74 68 65 0d 61 72 72 | 61 79 20 74 6f 20 62 65 | the.arr|ay to be|
|00001ba0| 20 69 64 65 6e 74 69 63 | 61 6c 20 74 6f 20 74 68 | identic|al to th|
|00001bb0| 65 20 66 69 72 73 74 20 | 68 61 6c 66 2c 20 74 6f |e first |half, to|
|00001bc0| 20 69 6d 70 6c 65 6d 65 | 6e 74 20 77 72 61 70 2d | impleme|nt wrap-|
|00001bd0| 61 72 6f 75 6e 64 2e 0d | 47 44 53 65 74 45 6e 74 |around..|GDSetEnt|
|00001be0| 72 69 65 73 2f 53 65 74 | 45 6e 74 72 69 65 73 51 |ries/Set|EntriesQ|
|00001bf0| 75 69 63 6b 6c 79 28 29 | 2c 20 61 73 20 61 6c 77 |uickly()|, as alw|
|00001c00| 61 79 73 2c 20 6c 6f 61 | 64 73 20 d2 63 6f 75 6e |ays, loa|ds .coun|
|00001c10| 74 2b 31 d3 20 65 6e 74 | 72 69 65 73 20 73 74 61 |t+1. ent|ries sta|
|00001c20| 72 74 69 6e 67 20 61 74 | 0d 65 6e 74 72 79 20 d2 |rting at|.entry .|
|00001c30| 73 74 61 72 74 d3 2e 20 | 28 59 65 73 2c 20 d2 63 |start.. |(Yes, .c|
|00001c40| 6f 75 6e 74 2b 31 d3 2c | 20 74 68 61 74 d5 73 20 |ount+1.,| that.s |
|00001c50| 41 70 70 6c 65 d5 73 20 | 63 6f 6e 66 75 73 69 6e |Apple.s |confusin|
|00001c60| 67 20 63 6f 6e 76 65 6e | 74 69 6f 6e 2e 29 20 20 |g conven|tion.) |
|00001c70| 4a 75 73 74 20 61 64 64 | 0d 61 6e 20 69 6e 74 65 |Just add|.an inte|
|00001c80| 67 65 72 20 22 6f 66 66 | 73 65 74 22 20 74 6f 20 |ger "off|set" to |
|00001c90| 74 68 65 20 74 61 62 6c | 65 20 70 6f 69 6e 74 65 |the tabl|e pointe|
|00001ca0| 72 2e 20 47 44 53 65 74 | 45 6e 74 72 69 65 73 2f |r. GDSet|Entries/|
|00001cb0| 53 65 74 45 6e 74 72 69 | 65 73 51 75 69 63 6b 6c |SetEntri|esQuickl|
|00001cc0| 79 28 29 20 77 69 6c 6c | 0d 73 74 61 72 74 20 72 |y() will|.start r|
|00001cd0| 65 61 64 69 6e 67 20 74 | 68 65 20 74 61 62 6c 65 |eading t|he table|
|00001ce0| 2c 20 6f 66 66 73 65 74 | 20 62 79 20 74 68 61 74 |, offset| by that|
|00001cf0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 43 6f 6c 6f 72 | number |of Color|
|00001d00| 53 70 65 63 73 2e 20 41 | 63 72 6f 73 73 20 61 20 |Specs. A|cross a |
|00001d10| 73 65 71 75 65 6e 63 65 | 0d 6f 66 20 66 72 61 6d |sequence|.of fram|
|00001d20| 65 73 2c 20 75 73 69 6e | 67 20 61 20 64 69 66 66 |es, usin|g a diff|
|00001d30| 65 72 65 6e 74 20 6f 66 | 66 73 65 74 20 66 6f 72 |erent of|fset for|
|00001d40| 20 65 61 63 68 20 63 61 | 6c 6c 20 74 6f 20 47 44 | each ca|ll to GD|
|00001d50| 53 65 74 45 6e 74 72 69 | 65 73 20 6f 72 0d 53 65 |SetEntri|es or.Se|
|00001d60| 74 45 6e 74 72 69 65 73 | 51 75 69 63 6b 6c 79 28 |tEntries|Quickly(|
|00001d70| 29 2c 20 65 61 63 68 20 | 43 6f 6c 6f 72 53 70 65 |), each |ColorSpe|
|00001d80| 63 20 6f 66 20 74 68 65 | 20 61 72 72 61 79 20 63 |c of the| array c|
|00001d90| 61 6e 20 62 65 20 6c 6f | 61 64 65 64 20 74 6f 20 |an be lo|aded to |
|00001da0| 61 6e 79 20 65 6e 74 72 | 79 2e 20 49 6e 0d 70 72 |any entr|y. In.pr|
|00001db0| 61 63 74 69 63 65 20 79 | 6f 75 27 64 20 63 72 65 |actice y|ou'd cre|
|00001dc0| 61 74 65 20 73 65 76 65 | 72 61 6c 20 6f 66 20 74 |ate seve|ral of t|
|00001dd0| 68 65 73 65 20 64 6f 75 | 62 6c 65 2d 73 69 7a 65 |hese dou|ble-size|
|00001de0| 64 20 43 6f 6c 6f 72 53 | 70 65 63 20 61 72 72 61 |d ColorS|pec arra|
|00001df0| 79 73 20 61 6e 64 20 61 | 6e 69 6d 61 74 65 0d 62 |ys and a|nimate.b|
|00001e00| 79 20 75 73 69 6e 67 20 | 61 20 64 69 66 66 65 72 |y using |a differ|
|00001e10| 65 6e 74 20 61 72 72 61 | 79 20 61 6e 64 20 6f 66 |ent arra|y and of|
|00001e20| 66 73 65 74 20 6f 6e 20 | 65 61 63 68 20 66 72 61 |fset on |each fra|
|00001e30| 6d 65 2e 20 20 54 68 65 | 20 70 61 79 6f 66 66 20 |me. The| payoff |
|00001e40| 69 73 20 74 68 61 74 20 | 74 68 65 0d 6e 75 6d 62 |is that |the.numb|
|00001e50| 65 72 20 6f 66 20 61 72 | 72 61 79 73 2c 20 61 6e |er of ar|rays, an|
|00001e60| 64 20 63 6c 75 74 20 63 | 6f 6d 70 75 74 61 74 69 |d clut c|omputati|
|00001e70| 6f 6e 20 74 69 6d 65 2c | 20 69 73 20 61 6e 20 6f |on time,| is an o|
|00001e80| 72 64 65 72 20 6f 66 20 | 6d 61 67 6e 69 74 75 64 |rder of |magnitud|
|00001e90| 65 20 6c 6f 77 65 72 20 | 74 68 61 6e 0d 77 6f 75 |e lower |than.wou|
|00001ea0| 6c 64 20 62 65 20 72 65 | 71 75 69 72 65 64 20 74 |ld be re|quired t|
|00001eb0| 6f 20 63 6f 6d 70 75 74 | 65 20 61 20 63 75 73 74 |o comput|e a cust|
|00001ec0| 6f 6d 20 63 6c 75 74 20 | 66 6f 72 20 65 61 63 68 |om clut |for each|
|00001ed0| 20 63 61 73 65 2e 22 0d | 0d 4d 41 4b 49 4e 47 20 | case.".|.MAKING |
|00001ee0| 44 59 4e 41 4d 49 43 20 | 57 48 49 54 45 20 4e 4f |DYNAMIC |WHITE NO|
|00001ef0| 49 53 45 2e 20 49 20 6b | 6e 6f 77 20 6f 66 20 61 |ISE. I k|now of a|
|00001f00| 74 20 6c 65 61 73 74 20 | 74 68 72 65 65 20 70 65 |t least |three pe|
|00001f10| 6f 70 6c 65 20 28 69 6e | 63 6c 75 64 69 6e 67 20 |ople (in|cluding |
|00001f20| 6d 79 73 65 6c 66 29 0d | 74 68 61 74 20 68 69 74 |myself).|that hit|
|00001f30| 20 75 70 6f 6e 20 63 6c | 75 74 20 61 6e 69 6d 61 | upon cl|ut anima|
|00001f40| 74 69 6f 6e 20 61 73 20 | 61 20 66 61 73 74 20 77 |tion as |a fast w|
|00001f50| 61 79 20 74 6f 20 73 79 | 6e 74 68 65 73 69 7a 65 |ay to sy|nthesize|
|00001f60| 20 64 79 6e 61 6d 69 63 | 20 77 68 69 74 65 20 6e | dynamic| white n|
|00001f70| 6f 69 73 65 2e 0d 59 6f | 75 20 66 69 6c 6c 20 74 |oise..Yo|u fill t|
|00001f80| 68 65 20 69 6d 61 67 65 | 20 70 6c 61 6e 65 20 77 |he image| plane w|
|00001f90| 69 74 68 20 72 61 6e 64 | 6f 6d 20 6e 75 6d 62 65 |ith rand|om numbe|
|00001fa0| 72 73 20 69 6e 20 74 68 | 65 20 72 61 6e 67 65 20 |rs in th|e range |
|00001fb0| 30 20 74 6f 20 32 35 35 | 2c 20 61 6e 64 20 79 6f |0 to 255|, and yo|
|00001fc0| 75 20 6c 6f 61 64 0d 61 | 20 6e 65 77 20 72 61 6e |u load.a| new ran|
|00001fd0| 64 6f 6d 20 63 6c 75 74 | 20 6f 6e 20 65 61 63 68 |dom clut| on each|
|00001fe0| 20 66 72 61 6d 65 2e 20 | 49 74 20 6d 69 67 68 74 | frame. |It might|
|00001ff0| 20 73 65 65 6d 20 74 68 | 61 74 20 74 68 69 73 20 | seem th|at this |
|00002000| 77 69 6c 6c 20 70 72 6f | 64 75 63 65 20 6e 6f 69 |will pro|duce noi|
|00002010| 73 65 20 74 68 61 74 0d | 69 73 20 73 70 61 74 69 |se that.|is spati|
|00002020| 61 6c 6c 79 20 61 6e 64 | 20 74 65 6d 70 6f 72 61 |ally and| tempora|
|00002030| 6c 6c 79 20 75 6e 63 6f | 72 72 65 6c 61 74 65 64 |lly unco|rrelated|
|00002040| 2e 20 4e 6f 74 20 71 75 | 69 74 65 2e 20 41 6e 79 |. Not qu|ite. Any|
|00002050| 20 70 61 69 72 20 6f 66 | 20 70 69 78 65 6c 73 20 | pair of| pixels |
|00002060| 68 61 73 20 61 0d 31 2f | 32 35 36 20 63 68 61 6e |has a.1/|256 chan|
|00002070| 63 65 20 6f 66 20 62 65 | 69 6e 67 20 64 72 69 76 |ce of be|ing driv|
|00002080| 65 6e 20 62 79 20 74 68 | 65 20 73 61 6d 65 20 63 |en by th|e same c|
|00002090| 6c 75 74 20 65 6e 74 72 | 79 2c 20 69 6e 20 77 68 |lut entr|y, in wh|
|000020a0| 69 63 68 20 63 61 73 65 | 20 74 68 65 79 20 77 69 |ich case| they wi|
|000020b0| 6c 6c 20 62 65 0d 70 65 | 72 66 65 63 74 6c 79 20 |ll be.pe|rfectly |
|000020c0| 63 6f 72 72 65 6c 61 74 | 65 64 2e 20 53 6f 20 74 |correlat|ed. So t|
|000020d0| 68 65 20 73 70 61 74 69 | 61 6c 20 61 75 74 6f 63 |he spati|al autoc|
|000020e0| 6f 72 72 65 6c 61 74 69 | 6f 6e 20 66 75 6e 63 74 |orrelati|on funct|
|000020f0| 69 6f 6e 20 68 61 73 20 | 74 68 65 20 28 64 65 73 |ion has |the (des|
|00002100| 69 72 65 64 29 0d 64 65 | 6c 74 61 20 66 75 6e 63 |ired).de|lta func|
|00002110| 74 69 6f 6e 20 61 74 20 | 7a 65 72 6f 20 73 65 70 |tion at |zero sep|
|00002120| 61 72 61 74 69 6f 6e 20 | 61 6e 64 20 61 6e 20 28 |aration |and an (|
|00002130| 75 6e 64 65 73 69 72 65 | 64 29 20 31 2f 32 35 36 |undesire|d) 1/256|
|00002140| 20 63 6f 72 72 65 6c 61 | 74 69 6f 6e 20 61 74 20 | correla|tion at |
|00002150| 61 6c 6c 0d 6f 74 68 65 | 72 20 73 65 70 61 72 61 |all.othe|r separa|
|00002160| 74 69 6f 6e 73 2e 20 54 | 68 69 73 20 63 6f 72 72 |tions. T|his corr|
|00002170| 65 73 70 6f 6e 64 73 20 | 74 6f 20 74 68 65 20 64 |esponds |to the d|
|00002180| 65 73 69 72 65 64 20 66 | 6c 61 74 20 73 70 65 63 |esired f|lat spec|
|00002190| 74 72 75 6d 2c 20 50 4c | 55 53 20 61 6e 0d 75 6e |trum, PL|US an.un|
|000021a0| 64 65 73 69 72 65 64 20 | 64 65 6c 74 61 20 66 75 |desired |delta fu|
|000021b0| 6e 63 74 69 6f 6e 20 61 | 74 20 7a 65 72 6f 20 73 |nction a|t zero s|
|000021c0| 70 61 74 69 61 6c 20 66 | 72 65 71 75 65 6e 63 79 |patial f|requency|
|000021d0| 2e 20 49 6e 20 70 6c 61 | 69 6e 20 45 6e 67 6c 69 |. In pla|in Engli|
|000021e0| 73 68 2c 20 79 6f 75 27 | 6c 6c 20 65 6e 64 0d 75 |sh, you'|ll end.u|
|000021f0| 70 20 77 69 74 68 20 64 | 79 6e 61 6d 69 63 20 77 |p with d|ynamic w|
|00002200| 68 69 74 65 20 6e 6f 69 | 73 65 20 70 6c 75 73 20 |hite noi|se plus |
|00002210| 61 20 73 70 61 74 69 61 | 6c 6c 79 2d 75 6e 69 66 |a spatia|lly-unif|
|00002220| 6f 72 6d 20 74 65 6d 70 | 6f 72 61 6c 6c 79 2d 77 |orm temp|orally-w|
|00002230| 68 69 74 65 20 66 6c 69 | 63 6b 65 72 2e 0d 28 54 |hite fli|cker..(T|
|00002240| 68 69 73 20 70 72 6f 62 | 6c 65 6d 20 64 6f 65 73 |his prob|lem does|
|00002250| 20 6e 6f 74 20 61 72 69 | 73 65 20 69 66 20 79 6f | not ari|se if yo|
|00002260| 75 20 6f 6e 6c 79 20 75 | 73 65 20 65 61 63 68 20 |u only u|se each |
|00002270| 63 6c 75 74 20 65 6e 74 | 72 79 20 6f 6e 63 65 2c |clut ent|ry once,|
|00002280| 20 62 75 74 20 74 68 61 | 74 0d 72 65 73 74 72 69 | but tha|t.restri|
|00002290| 63 74 73 20 79 6f 75 20 | 74 6f 20 61 6e 20 69 6d |cts you |to an im|
|000022a0| 61 67 65 20 6f 66 20 6f | 6e 6c 79 20 31 36 78 31 |age of o|nly 16x1|
|000022b0| 36 2e 29 20 4e 6f 74 65 | 20 74 68 61 74 20 49 20 |6.) Note| that I |
|000022c0| 61 6d 20 6f 6e 6c 79 20 | 64 69 73 63 75 73 73 69 |am only |discussi|
|000022d0| 6e 67 20 66 69 72 73 74 | 0d 61 6e 64 20 73 65 63 |ng first|.and sec|
|000022e0| 6f 6e 64 20 6f 72 64 65 | 72 20 73 74 61 74 69 73 |ond orde|r statis|
|000022f0| 74 69 63 73 2e 20 48 69 | 67 68 65 72 2d 6f 72 64 |tics. Hi|gher-ord|
|00002300| 65 72 20 73 74 61 74 69 | 73 74 69 63 73 20 77 69 |er stati|stics wi|
|00002310| 6c 6c 20 73 74 69 6c 6c | 20 64 69 66 66 65 72 20 |ll still| differ |
|00002320| 66 72 6f 6d 0d 74 72 75 | 6c 79 20 77 68 69 74 65 |from.tru|ly white|
|00002330| 20 6e 6f 69 73 65 2c 20 | 62 75 74 20 49 20 64 6f | noise, |but I do|
|00002340| 75 62 74 20 74 68 61 74 | 20 6f 75 72 20 76 69 73 |ubt that| our vis|
|00002350| 75 61 6c 20 73 79 73 74 | 65 6d 73 20 61 72 65 20 |ual syst|ems are |
|00002360| 73 65 6e 73 69 74 69 76 | 65 20 74 6f 20 74 68 65 |sensitiv|e to the|
|00002370| 0d 64 69 66 66 65 72 65 | 6e 63 65 2e 20 48 6f 77 |.differe|nce. How|
|00002380| 65 76 65 72 2c 20 74 68 | 65 20 73 70 61 74 69 61 |ever, th|e spatia|
|00002390| 6c 6c 79 20 75 6e 69 66 | 6f 72 6d 20 66 6c 69 63 |lly unif|orm flic|
|000023a0| 6b 65 72 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 6f 66 |ker comp|onent of|
|000023b0| 20 74 68 65 20 63 6c 75 | 74 0d 61 6e 69 6d 61 74 | the clu|t.animat|
|000023c0| 69 6f 6e 20 6e 6f 69 73 | 65 20 69 73 20 76 69 73 |ion nois|e is vis|
|000023d0| 75 61 6c 6c 79 20 76 65 | 72 79 20 73 61 6c 69 65 |ually ve|ry salie|
|000023e0| 6e 74 2e 20 54 65 64 20 | 41 64 65 6c 73 6f 6e 20 |nt. Ted |Adelson |
|000023f0| 6e 6f 74 69 63 65 64 20 | 69 74 20 69 6d 6d 65 64 |noticed |it immed|
|00002400| 69 61 74 65 6c 79 0d 77 | 68 65 6e 20 49 20 70 72 |iately.w|hen I pr|
|00002410| 6f 75 64 6c 79 20 64 65 | 6d 6f 6e 73 74 72 61 74 |oudly de|monstrat|
|00002420| 65 64 20 74 68 69 73 20 | 6d 65 74 68 6f 64 20 61 |ed this |method a|
|00002430| 74 20 4f 70 74 69 63 61 | 6c 20 53 6f 63 69 65 74 |t Optica|l Societ|
|00002440| 79 20 69 6e 20 53 61 6e | 20 46 72 61 6e 63 69 73 |y in San| Francis|
|00002450| 63 6f 20 69 6e 0d 31 39 | 38 39 20 28 49 20 74 68 |co in.19|89 (I th|
|00002460| 69 6e 6b 29 2e 20 54 68 | 65 20 61 72 74 69 66 61 |ink). Th|e artifa|
|00002470| 63 74 75 61 6c 20 66 6c | 69 63 6b 65 72 20 62 65 |ctual fl|icker be|
|00002480| 63 6f 6d 65 73 20 70 72 | 6f 67 72 65 73 73 69 76 |comes pr|ogressiv|
|00002490| 65 6c 79 20 6d 6f 72 65 | 20 73 61 6c 69 65 6e 74 |ely more| salient|
|000024a0| 20 61 73 0d 79 6f 75 20 | 69 6e 63 72 65 61 73 65 | as.you |increase|
|000024b0| 20 74 68 65 20 76 69 65 | 77 69 6e 67 20 64 69 73 | the vie|wing dis|
|000024c0| 74 61 6e 63 65 2c 20 73 | 69 6e 63 65 20 74 68 65 |tance, s|ince the|
|000024d0| 20 73 70 61 74 69 61 6c | 6c 79 20 75 6e 63 6f 72 | spatial|ly uncor|
|000024e0| 72 65 6c 61 74 65 64 20 | 6e 6f 69 73 65 20 66 61 |related |noise fa|
|000024f0| 64 65 73 0d 6f 75 74 20 | 77 68 69 6c 65 20 74 68 |des.out |while th|
|00002500| 65 20 73 70 61 74 69 61 | 6c 6c 79 20 75 6e 69 66 |e spatia|lly unif|
|00002510| 6f 72 6d 20 6e 6f 69 73 | 65 20 69 73 20 75 6e 61 |orm nois|e is una|
|00002520| 66 66 65 63 74 65 64 2e | 20 57 68 61 74 20 49 20 |ffected.| What I |
|00002530| 6e 6f 77 20 64 6f 2c 20 | 61 6e 64 0d 72 65 63 6f |now do, |and.reco|
|00002540| 6d 6d 65 6e 64 20 74 6f | 20 6f 74 68 65 72 73 2c |mmend to| others,|
|00002550| 20 69 73 20 74 6f 20 75 | 73 65 20 62 72 75 74 65 | is to u|se brute|
|00002560| 20 66 6f 72 63 65 2e 20 | 50 72 65 63 6f 6d 70 75 | force. |Precompu|
|00002570| 74 65 20 61 6c 6c 20 74 | 68 65 20 6e 6f 69 73 65 |te all t|he noise|
|00002580| 20 61 6e 64 20 73 68 6f | 77 20 61 0d 6d 6f 76 69 | and sho|w a.movi|
|00002590| 65 20 69 6e 20 77 68 69 | 63 68 20 61 6c 6c 20 74 |e in whi|ch all t|
|000025a0| 68 65 20 70 69 78 65 6c | 73 20 61 72 65 20 74 72 |he pixel|s are tr|
|000025b0| 75 6c 79 20 69 6e 64 65 | 70 65 6e 64 65 6e 74 20 |uly inde|pendent |
|000025c0| 72 61 6e 64 6f 6d 20 73 | 61 6d 70 6c 65 73 2e 20 |random s|amples. |
|000025d0| 54 68 65 0d 56 69 64 65 | 6f 54 6f 6f 6c 62 6f 78 |The.Vide|oToolbox|
|000025e0| 20 72 6f 75 74 69 6e 65 | 20 52 61 6e 64 46 69 6c | routine| RandFil|
|000025f0| 6c 28 29 20 69 73 20 61 | 20 66 61 73 74 20 77 61 |l() is a| fast wa|
|00002600| 79 20 74 6f 20 63 6f 6d | 70 75 74 65 20 74 68 65 |y to com|pute the|
|00002610| 20 6e 6f 69 73 65 2c 20 | 61 6e 64 20 69 73 20 75 | noise, |and is u|
|00002620| 73 65 64 0d 62 79 20 4e | 6f 69 73 65 46 69 6c 6c |sed.by N|oiseFill|
|00002630| 2e 63 2e 20 54 72 79 20 | 74 68 65 20 64 65 6d 6f |.c. Try |the demo|
|00002640| 73 20 53 61 6e 64 73 74 | 6f 72 6d 20 61 6e 64 20 |s Sandst|orm and |
|00002650| 4e 6f 69 73 65 56 42 4c | 2e 0d 0d 46 41 4e 43 49 |NoiseVBL|...FANCI|
|00002660| 45 52 20 54 52 49 43 4b | 53 2e 20 54 68 65 20 76 |ER TRICK|S. The v|
|00002670| 69 64 65 6f 20 63 61 72 | 64 20 68 61 73 20 6f 6e |ideo car|d has on|
|00002680| 6c 79 20 6f 6e 65 20 63 | 6c 75 74 2c 20 62 75 74 |ly one c|lut, but|
|00002690| 20 69 74 20 69 73 20 70 | 6f 73 73 69 62 6c 65 20 | it is p|ossible |
|000026a0| 74 6f 0d 73 69 6d 75 6c | 74 61 6e 65 6f 75 73 6c |to.simul|taneousl|
|000026b0| 79 20 70 72 65 73 65 6e | 74 20 6d 75 6c 74 69 70 |y presen|t multip|
|000026c0| 6c 65 20 69 6e 64 65 70 | 65 6e 64 65 6e 74 6c 79 |le indep|endently|
|000026d0| 20 6d 6f 64 75 6c 61 74 | 65 64 20 70 61 74 74 65 | modulat|ed patte|
|000026e0| 72 6e 73 2c 20 62 79 20 | 72 65 73 65 72 76 69 6e |rns, by |reservin|
|000026f0| 67 0d 73 65 70 61 72 61 | 74 65 20 73 65 63 74 69 |g.separa|te secti|
|00002700| 6f 6e 73 20 6f 66 20 74 | 68 65 20 63 6c 75 74 20 |ons of t|he clut |
|00002710| 66 6f 72 20 65 61 63 68 | 20 74 65 6d 70 6f 72 61 |for each| tempora|
|00002720| 6c 20 6d 6f 64 75 6c 61 | 74 69 6f 6e 2c 20 74 68 |l modula|tion, th|
|00002730| 6f 75 67 68 20 79 6f 75 | 27 6c 6c 20 73 75 66 66 |ough you|'ll suff|
|00002740| 65 72 0d 61 20 63 6f 6d | 65 6e 73 75 72 61 74 65 |er.a com|ensurate|
|00002750| 20 6c 6f 73 73 20 6f 66 | 20 69 6e 74 65 6e 73 69 | loss of| intensi|
|00002760| 74 79 20 72 65 73 6f 6c | 75 74 69 6f 6e 2e 20 43 |ty resol|ution. C|
|00002770| 6c 75 74 20 61 6e 69 6d | 61 74 69 6f 6e 20 69 73 |lut anim|ation is|
|00002780| 20 6e 6f 74 20 72 65 73 | 74 72 69 63 74 65 64 20 | not res|tricted |
|00002790| 74 6f 0d 64 79 6e 61 6d | 69 63 20 6d 6f 64 75 6c |to.dynam|ic modul|
|000027a0| 61 74 69 6f 6e 20 6f 66 | 20 63 6f 6e 74 72 61 73 |ation of| contras|
|000027b0| 74 2e 20 49 66 20 74 68 | 65 20 70 69 78 65 6c 20 |t. If th|e pixel |
|000027c0| 76 61 6c 75 65 73 20 72 | 65 70 72 65 73 65 6e 74 |values r|epresent|
|000027d0| 20 70 68 61 73 65 2c 20 | 61 6e 64 20 74 68 65 0d | phase, |and the.|
|000027e0| 63 6c 75 74 20 69 73 20 | 6c 6f 61 64 65 64 20 77 |clut is |loaded w|
|000027f0| 69 74 68 20 61 20 73 69 | 6e 20 66 75 6e 63 74 69 |ith a si|n functi|
|00002800| 6f 6e 2c 20 74 68 65 6e | 20 72 6f 74 61 74 69 6e |on, then| rotatin|
|00002810| 67 20 74 68 65 20 63 6c | 75 74 20 65 6e 74 72 69 |g the cl|ut entri|
|00002820| 65 73 2d 2d 69 2e 65 2e | 20 73 65 74 74 69 6e 67 |es--i.e.| setting|
|00002830| 0d 74 68 65 20 69 2d 74 | 68 20 65 6e 74 72 79 20 |.the i-t|h entry |
|00002840| 74 6f 20 77 68 61 74 20 | 77 61 73 20 66 6f 72 6d |to what |was form|
|00002850| 65 72 6c 79 20 74 68 65 | 20 76 61 6c 75 65 20 6f |erly the| value o|
|00002860| 66 20 74 68 65 20 69 2d | 31 20 65 6e 74 72 79 20 |f the i-|1 entry |
|00002870| 28 73 65 65 20 43 6f 6c | 6f 72 0d 43 79 63 6c 69 |(see Col|or.Cycli|
|00002880| 6e 67 2c 20 61 62 6f 76 | 65 29 2d 2d 77 69 6c 6c |ng, abov|e)--will|
|00002890| 20 73 68 69 66 74 20 74 | 68 65 20 70 68 61 73 65 | shift t|he phase|
|000028a0| 20 6f 66 20 74 68 65 20 | 70 61 74 74 65 72 6e 2e | of the |pattern.|
|000028b0| 20 41 20 73 70 61 74 69 | 61 6c 6c 79 20 76 69 67 | A spati|ally vig|
|000028c0| 6e 65 74 74 65 64 0d 64 | 72 69 66 74 69 6e 67 20 |netted.d|rifting |
|000028d0| 67 72 61 74 69 6e 67 20 | 6d 61 79 20 62 65 20 73 |grating |may be s|
|000028e0| 79 6e 74 68 65 73 69 7a | 65 64 20 62 79 20 75 73 |ynthesiz|ed by us|
|000028f0| 69 6e 67 20 61 6c 74 65 | 72 6e 61 74 65 20 70 69 |ing alte|rnate pi|
|00002900| 78 65 6c 73 20 28 6f 72 | 20 66 72 61 6d 65 73 29 |xels (or| frames)|
|00002910| 20 74 6f 0d 72 65 70 72 | 65 73 65 6e 74 20 76 69 | to.repr|esent vi|
|00002920| 67 6e 65 74 74 65 64 20 | 73 69 6e 20 61 6e 64 20 |gnetted |sin and |
|00002930| 63 6f 73 20 63 6f 6d 70 | 6f 6e 65 6e 74 73 20 6f |cos comp|onents o|
|00002940| 66 20 74 68 65 20 70 61 | 74 74 65 72 6e 2c 20 64 |f the pa|ttern, d|
|00002950| 65 76 6f 74 69 6e 67 20 | 68 61 6c 66 20 74 68 65 |evoting |half the|
|00002960| 0d 63 6c 75 74 20 74 6f | 20 65 61 63 68 20 28 6f |.clut to| each (o|
|00002970| 72 20 6c 6f 61 64 69 6e | 67 20 61 6c 74 65 72 6e |r loadin|g altern|
|00002980| 61 74 65 20 63 6c 75 74 | 73 20 6f 6e 20 61 6c 74 |ate clut|s on alt|
|00002990| 65 72 6e 61 74 65 20 66 | 72 61 6d 65 73 29 2e 20 |ernate f|rames). |
|000029a0| 41 70 70 72 6f 70 72 69 | 61 74 65 0d 61 64 6a 75 |Appropri|ate.adju|
|000029b0| 73 74 6d 65 6e 74 20 6f | 66 20 74 68 65 20 72 65 |stment o|f the re|
|000029c0| 6c 61 74 69 76 65 20 63 | 6f 6e 74 72 61 73 74 73 |lative c|ontrasts|
|000029d0| 20 6f 66 20 74 68 65 20 | 73 69 6e 20 61 6e 64 20 | of the |sin and |
|000029e0| 63 6f 73 20 63 6f 6d 70 | 6f 6e 65 6e 74 73 20 77 |cos comp|onents w|
|000029f0| 69 6c 6c 20 70 72 6f 64 | 75 63 65 0d 61 6e 79 20 |ill prod|uce.any |
|00002a00| 64 65 73 69 72 65 64 20 | 70 68 61 73 65 20 6f 66 |desired |phase of|
|00002a10| 20 74 68 65 20 73 75 6d | 2e 20 48 6f 77 65 76 65 | the sum|. Howeve|
|00002a20| 72 2c 20 6d 6f 73 74 20 | 6f 66 20 74 68 65 73 65 |r, most |of these|
|00002a30| 20 74 72 69 63 6b 73 20 | 61 72 65 20 73 75 70 65 | tricks |are supe|
|00002a40| 72 66 6c 75 6f 75 73 3b | 0d 69 74 d5 73 20 75 73 |rfluous;|.it.s us|
|00002a50| 75 61 6c 6c 79 20 65 61 | 73 69 65 72 20 61 6e 64 |ually ea|sier and|
|00002a60| 20 62 65 74 74 65 72 20 | 74 6f 20 6a 75 73 74 20 | better |to just |
|00002a70| 73 68 6f 77 20 61 20 6d | 6f 76 69 65 2e 20 4d 61 |show a m|ovie. Ma|
|00002a80| 6e 79 20 63 75 72 72 65 | 6e 74 20 70 72 6f 63 65 |ny curre|nt proce|
|00002a90| 73 73 6f 72 73 20 61 72 | 65 0d 66 61 73 74 20 65 |ssors ar|e.fast e|
|00002aa0| 6e 6f 75 67 68 20 74 6f | 20 73 68 6f 77 20 38 2d |nough to| show 8-|
|00002ab0| 62 69 74 20 66 75 6c 6c | 2d 73 63 72 65 65 6e 20 |bit full|-screen |
|00002ac0| 6d 6f 76 69 65 73 2e 0d | 0d 41 2e 20 48 4f 57 20 |movies..|.A. HOW |
|00002ad0| 54 4f 20 53 59 4e 43 48 | 52 4f 4e 49 5a 45 20 41 |TO SYNCH|RONIZE A|
|00002ae0| 20 4d 41 43 49 4e 54 4f | 53 48 20 50 52 4f 47 52 | MACINTO|SH PROGR|
|00002af0| 41 4d 20 54 4f 20 41 20 | 56 49 44 45 4f 20 43 41 |AM TO A |VIDEO CA|
|00002b00| 52 44 2e 0d 0d 54 68 65 | 20 68 61 72 64 65 73 74 |RD...The| hardest|
|00002b10| 20 70 61 72 74 20 69 6e | 20 64 6f 69 6e 67 20 76 | part in| doing v|
|00002b20| 69 73 69 6f 6e 20 65 78 | 70 65 72 69 6d 65 6e 74 |ision ex|periment|
|00002b30| 73 20 69 73 20 73 79 6e | 63 68 72 6f 6e 69 7a 69 |s is syn|chronizi|
|00002b40| 6e 67 20 74 68 65 20 63 | 6f 6d 70 75 74 65 72 0d |ng the c|omputer.|
|00002b50| 70 72 6f 67 72 61 6d 20 | 74 6f 20 74 68 65 20 76 |program |to the v|
|00002b60| 69 64 65 6f 20 63 61 72 | 64 2e 20 4e 65 61 72 6c |ideo car|d. Nearl|
|00002b70| 79 20 61 6c 6c 20 76 69 | 64 65 6f 20 63 61 72 64 |y all vi|deo card|
|00002b80| 73 20 61 72 65 20 6d 61 | 73 74 65 72 73 2c 20 61 |s are ma|sters, a|
|00002b90| 6e 64 20 72 75 6e 20 66 | 72 65 65 6c 79 2c 0d 65 |nd run f|reely,.e|
|00002ba0| 78 70 65 63 74 69 6e 67 | 20 74 68 65 20 76 69 64 |xpecting| the vid|
|00002bb0| 65 6f 20 6d 6f 6e 69 74 | 6f 72 20 74 6f 20 62 65 |eo monit|or to be|
|00002bc0| 20 61 20 73 6c 61 76 65 | 2e 20 41 6e 79 20 65 78 | a slave|. Any ex|
|00002bd0| 70 65 72 69 6d 65 6e 74 | 20 74 68 61 74 20 63 61 |periment| that ca|
|00002be0| 72 65 73 20 61 62 6f 75 | 74 0d 74 69 6d 69 6e 67 |res abou|t.timing|
|00002bf0| 20 77 69 6c 6c 20 6e 6f | 72 6d 61 6c 6c 79 20 68 | will no|rmally h|
|00002c00| 61 76 65 20 74 6f 20 73 | 79 6e 63 68 72 6f 6e 69 |ave to s|ynchroni|
|00002c10| 7a 65 20 69 74 73 65 6c | 66 20 74 6f 20 74 68 65 |ze itsel|f to the|
|00002c20| 20 76 69 64 65 6f 20 63 | 61 72 64 2c 20 62 79 20 | video c|ard, by |
|00002c30| 77 61 69 74 69 6e 67 0d | 66 6f 72 20 65 61 63 68 |waiting.|for each|
|00002c40| 20 66 72 61 6d 65 20 74 | 6f 20 65 6e 64 2c 20 61 | frame t|o end, a|
|00002c50| 73 20 77 69 6c 6c 20 62 | 65 20 64 69 73 63 75 73 |s will b|e discus|
|00002c60| 73 65 64 20 62 65 6c 6f | 77 2e 0d 0d 59 6f 75 20 |sed belo|w...You |
|00002c70| 74 79 70 69 63 61 6c 6c | 79 20 63 61 6e 27 74 20 |typicall|y can't |
|00002c80| 61 63 63 65 73 73 20 74 | 68 65 20 76 69 64 65 6f |access t|he video|
|00002c90| 20 63 61 72 64 20 68 61 | 72 64 77 61 72 65 20 64 | card ha|rdware d|
|00002ca0| 69 72 65 63 74 6c 79 2c | 20 62 65 63 61 75 73 65 |irectly,| because|
|00002cb0| 20 69 74 27 73 0d 75 6e | 64 6f 63 75 6d 65 6e 74 | it's.un|document|
|00002cc0| 65 64 2e 20 49 6e 73 74 | 65 61 64 20 79 6f 75 20 |ed. Inst|ead you |
|00002cd0| 61 72 65 20 61 6c 6c 6f | 77 65 64 20 74 6f 20 73 |are allo|wed to s|
|00002ce0| 65 6e 64 20 72 65 71 75 | 65 73 74 73 20 74 6f 20 |end requ|ests to |
|00002cf0| 74 68 65 20 76 69 64 65 | 6f 20 64 72 69 76 65 72 |the vide|o driver|
|00002d00| 0d 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 |.associa|ted with|
|00002d10| 20 79 6f 75 72 20 76 69 | 64 65 6f 20 63 61 72 64 | your vi|deo card|
|00002d20| 2e 20 41 6c 6c 20 76 69 | 64 65 6f 20 63 61 72 64 |. All vi|deo card|
|00002d30| 73 20 74 68 61 74 20 70 | 6c 75 67 20 69 6e 74 6f |s that p|lug into|
|00002d40| 20 74 68 65 20 4d 61 63 | 20 63 6f 6d 65 0d 77 69 | the Mac| come.wi|
|00002d50| 74 68 20 76 69 64 65 6f | 20 64 72 69 76 65 72 73 |th video| drivers|
|00002d60| 20 74 68 61 74 20 63 6f | 6e 66 6f 72 6d 20 73 75 | that co|nform su|
|00002d70| 66 66 69 63 69 65 6e 74 | 6c 79 20 77 65 6c 6c 20 |fficient|ly well |
|00002d80| 74 6f 20 74 68 65 20 41 | 70 70 6c 65 20 67 75 69 |to the A|pple gui|
|00002d90| 64 65 6c 69 6e 65 73 20 | 74 68 61 74 0d 74 68 65 |delines |that.the|
|00002da0| 79 20 61 72 65 20 61 74 | 20 6c 65 61 73 74 20 6d |y are at| least m|
|00002db0| 69 6e 69 6d 61 6c 6c 79 | 20 63 6f 6d 70 61 74 69 |inimally| compati|
|00002dc0| 62 6c 65 20 77 69 74 68 | 20 74 68 65 20 56 69 64 |ble with| the Vid|
|00002dd0| 65 6f 54 6f 6f 6c 62 6f | 78 2e 20 48 6f 77 65 76 |eoToolbo|x. Howev|
|00002de0| 65 72 2c 20 73 6f 6d 65 | 0d 64 72 69 76 65 72 73 |er, some|.drivers|
|00002df0| 20 68 61 76 65 20 6f 75 | 74 72 69 67 68 74 20 62 | have ou|tright b|
|00002e00| 75 67 73 2c 20 61 6e 64 | 20 74 68 65 20 74 69 6d |ugs, and| the tim|
|00002e10| 69 6e 67 20 6f 66 20 6d | 61 6e 79 20 64 72 69 76 |ing of m|any driv|
|00002e20| 65 72 73 2c 20 66 6f 72 | 20 77 68 69 63 68 20 41 |ers, for| which A|
|00002e30| 70 70 6c 65 20 64 6f 65 | 73 0d 6e 6f 74 20 70 75 |pple doe|s.not pu|
|00002e40| 62 6c 69 73 68 20 67 75 | 69 64 65 6c 69 6e 65 73 |blish gu|idelines|
|00002e50| 2c 20 73 6f 6d 65 74 69 | 6d 65 73 20 6d 61 6b 65 |, someti|mes make|
|00002e60| 73 20 69 74 20 73 75 72 | 70 72 69 73 69 6e 67 6c |s it sur|prisingl|
|00002e70| 79 20 64 69 66 66 69 63 | 75 6c 74 20 74 6f 20 64 |y diffic|ult to d|
|00002e80| 6f 20 73 69 6d 70 6c 65 | 0d 74 68 69 6e 67 73 2e |o simple|.things.|
|00002e90| 20 41 20 63 75 72 72 65 | 6e 74 20 6c 69 73 74 20 | A curre|nt list |
|00002ea0| 6f 66 20 74 68 65 73 65 | 20 62 75 67 73 20 61 6e |of these| bugs an|
|00002eb0| 64 20 22 66 65 61 74 75 | 72 65 73 22 20 61 70 70 |d "featu|res" app|
|00002ec0| 65 61 72 73 20 69 6e 20 | 74 68 65 20 56 69 64 65 |ears in |the Vide|
|00002ed0| 6f 54 6f 6f 6c 62 6f 78 | 0d 22 56 69 64 65 6f 20 |oToolbox|."Video |
|00002ee0| 64 72 69 76 65 72 20 62 | 75 67 73 22 20 64 6f 63 |driver b|ugs" doc|
|00002ef0| 75 6d 65 6e 74 2e 0d 0d | 45 76 65 72 79 20 76 69 |ument...|Every vi|
|00002f00| 64 65 6f 20 63 61 72 64 | 20 68 61 73 20 61 20 76 |deo card| has a v|
|00002f10| 69 64 65 6f 20 64 72 69 | 76 65 72 20 69 6e 20 69 |ideo dri|ver in i|
|00002f20| 74 73 20 52 4f 4d 2c 20 | 62 75 74 20 74 68 65 20 |ts ROM, |but the |
|00002f30| 6d 61 6e 75 66 61 63 74 | 75 72 65 72 20 6d 61 79 |manufact|urer may|
|00002f40| 20 73 75 70 70 6c 79 0d | 61 20 6e 65 77 65 72 20 | supply.|a newer |
|00002f50| 64 72 69 76 65 72 20 62 | 79 20 66 6c 6f 70 70 79 |driver b|y floppy|
|00002f60| 20 74 68 61 74 20 73 75 | 70 65 72 63 65 64 65 73 | that su|percedes|
|00002f70| 20 74 68 65 20 6f 6e 65 | 20 69 6e 20 52 4f 4d 2c | the one| in ROM,|
|00002f80| 20 77 68 69 63 68 20 6d | 61 79 20 62 65 20 62 75 | which m|ay be bu|
|00002f90| 67 67 79 2e 0d 28 42 75 | 69 6c 74 2d 69 6e 20 76 |ggy..(Bu|ilt-in v|
|00002fa0| 69 64 65 6f 20 64 65 76 | 69 63 65 73 2c 20 65 2e |ideo dev|ices, e.|
|00002fb0| 67 2e 20 69 6e 20 74 68 | 65 20 4d 61 63 20 49 49 |g. in th|e Mac II|
|00002fc0| 63 69 20 61 6e 64 20 51 | 75 61 64 72 61 20 63 6f |ci and Q|uadra co|
|00002fd0| 6d 70 75 74 65 72 73 2c | 20 6c 6f 61 64 20 74 68 |mputers,| load th|
|00002fe0| 65 0d 76 69 64 65 6f 20 | 64 72 69 76 65 72 20 66 |e.video |driver f|
|00002ff0| 72 6f 6d 20 74 68 65 20 | 63 6f 6d 70 75 74 65 72 |rom the |computer|
|00003000| 27 73 20 52 4f 4d 2e 29 | 20 41 70 70 6c 65 20 64 |'s ROM.)| Apple d|
|00003010| 69 73 74 72 69 62 75 74 | 65 73 20 76 69 64 65 6f |istribut|es video|
|00003020| 20 64 72 69 76 65 72 20 | 75 70 64 61 74 65 73 20 | driver |updates |
|00003030| 61 73 0d 72 65 73 6f 75 | 72 63 65 73 20 69 6e 20 |as.resou|rces in |
|00003040| 74 68 65 20 53 79 73 74 | 65 6d 20 66 69 6c 65 2c |the Syst|em file,|
|00003050| 20 73 6f 20 75 70 64 61 | 74 69 6e 67 20 79 6f 75 | so upda|ting you|
|00003060| 72 20 53 79 73 74 65 6d | 20 6d 61 79 20 63 68 61 |r System| may cha|
|00003070| 6e 67 65 20 74 68 65 20 | 76 69 64 65 6f 0d 64 72 |nge the |video.dr|
|00003080| 69 76 65 72 20 6f 66 20 | 79 6f 75 72 20 41 70 70 |iver of |your App|
|00003090| 6c 65 20 76 69 64 65 6f | 20 63 61 72 64 2e 20 49 |le video| card. I|
|000030a0| 64 65 6e 74 69 66 79 56 | 69 64 65 6f 28 64 65 76 |dentifyV|ideo(dev|
|000030b0| 69 63 65 29 20 72 65 74 | 75 72 6e 73 20 61 20 73 |ice) ret|urns a s|
|000030c0| 74 72 69 6e 67 20 77 69 | 74 68 20 74 68 65 0d 6e |tring wi|th the.n|
|000030d0| 61 6d 65 20 61 6e 64 20 | 76 65 72 73 69 6f 6e 20 |ame and |version |
|000030e0| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 65 20 64 72 |number o|f the dr|
|000030f0| 69 76 65 72 20 74 68 61 | 74 20 69 73 20 61 63 74 |iver tha|t is act|
|00003100| 75 61 6c 6c 79 20 69 6e | 20 75 73 65 2e 20 54 72 |ually in| use. Tr|
|00003110| 79 20 54 69 6d 65 56 69 | 64 65 6f 2e 0d 0d 54 68 |y TimeVi|deo...Th|
|00003120| 65 72 65 20 61 72 65 20 | 74 68 72 65 65 20 64 69 |ere are |three di|
|00003130| 66 66 65 72 65 6e 74 20 | 77 61 79 73 20 74 6f 20 |fferent |ways to |
|00003140| 73 79 6e 63 68 72 6f 6e | 69 7a 65 20 61 20 70 72 |synchron|ize a pr|
|00003150| 6f 67 72 61 6d 20 74 6f | 20 61 20 76 69 64 65 6f |ogram to| a video|
|00003160| 20 63 61 72 64 2c 20 77 | 68 69 63 68 0d 77 65 27 | card, w|hich.we'|
|00003170| 6c 6c 20 66 69 72 73 74 | 20 64 65 73 63 72 69 62 |ll first| describ|
|00003180| 65 20 71 75 69 63 6b 6c | 79 2c 20 61 6e 64 20 74 |e quickl|y, and t|
|00003190| 68 65 6e 20 6d 6f 72 65 | 20 66 75 6c 6c 79 2e 20 |hen more| fully. |
|000031a0| 28 31 29 20 41 70 70 6c | 65 20 72 65 63 6f 6d 6d |(1) Appl|e recomm|
|000031b0| 65 6e 64 73 20 75 73 69 | 6e 67 0d 74 68 65 20 76 |ends usi|ng.the v|
|000031c0| 65 72 74 69 63 61 6c 20 | 62 6c 61 6e 6b 69 6e 67 |ertical |blanking|
|000031d0| 20 69 6e 74 65 72 72 75 | 70 74 73 2c 20 77 68 69 | interru|pts, whi|
|000031e0| 63 68 20 61 72 65 20 73 | 75 70 70 6f 73 65 64 20 |ch are s|upposed |
|000031f0| 74 6f 20 6f 63 63 75 72 | 20 6f 6e 63 65 20 70 65 |to occur| once pe|
|00003200| 72 20 66 72 61 6d 65 2c | 20 61 74 0d 74 68 65 20 |r frame,| at.the |
|00003210| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 74 68 65 |beginnin|g of the|
|00003220| 20 76 65 72 74 69 63 61 | 6c 20 62 6c 61 6e 6b 69 | vertica|l blanki|
|00003230| 6e 67 2e 20 54 68 65 20 | 56 69 64 65 6f 54 6f 6f |ng. The |VideoToo|
|00003240| 6c 62 6f 78 20 56 42 4c | 49 6e 73 74 61 6c 6c 2e |lbox VBL|Install.|
|00003250| 63 20 72 6f 75 74 69 6e | 65 73 0d 6d 61 6b 65 20 |c routin|es.make |
|00003260| 74 68 69 73 20 76 65 72 | 79 20 65 61 73 79 20 74 |this ver|y easy t|
|00003270| 6f 20 64 6f 2e 20 41 20 | 64 69 73 61 64 76 61 6e |o do. A |disadvan|
|00003280| 74 61 67 65 20 6f 66 20 | 74 68 69 73 20 61 70 70 |tage of |this app|
|00003290| 72 6f 61 63 68 20 69 73 | 20 74 68 61 74 20 69 74 |roach is| that it|
|000032a0| 20 66 61 69 6c 73 20 69 | 66 0d 79 6f 75 20 72 61 | fails i|f.you ra|
|000032b0| 69 73 65 20 74 68 65 20 | 70 72 6f 63 65 73 73 6f |ise the |processo|
|000032c0| 72 20 70 72 69 6f 72 69 | 74 79 20 74 6f 20 62 6c |r priori|ty to bl|
|000032d0| 6f 63 6b 20 61 6c 6c 20 | 69 6e 74 65 72 72 75 70 |ock all |interrup|
|000032e0| 74 73 2e 20 28 32 29 20 | 4d 6f 73 74 20 28 6e 6f |ts. (2) |Most (no|
|000032f0| 74 20 61 6c 6c 29 0d 76 | 69 64 65 6f 20 64 72 69 |t all).v|ideo dri|
|00003300| 76 65 72 73 2c 20 77 68 | 65 6e 20 61 73 6b 65 64 |vers, wh|en asked|
|00003310| 20 74 6f 20 6c 6f 61 64 | 20 74 68 65 20 63 6c 75 | to load| the clu|
|00003320| 74 2c 20 77 61 69 74 20 | 75 6e 74 69 6c 20 74 68 |t, wait |until th|
|00003330| 65 20 76 65 72 74 69 63 | 61 6c 20 62 6c 61 6e 6b |e vertic|al blank|
|00003340| 69 6e 67 0d 69 6e 74 65 | 72 76 61 6c 20 62 65 66 |ing.inte|rval bef|
|00003350| 6f 72 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 74 6f |ore begi|nning to|
|00003360| 20 6c 6f 61 64 20 74 68 | 65 20 63 6c 75 74 2e 20 | load th|e clut. |
|00003370| 28 54 68 65 79 20 77 61 | 69 74 20 69 6e 20 6f 72 |(They wa|it in or|
|00003380| 64 65 72 20 74 6f 20 61 | 76 6f 69 64 0d 63 72 65 |der to a|void.cre|
|00003390| 61 74 69 6e 67 20 76 69 | 73 69 62 6c 65 20 68 61 |ating vi|sible ha|
|000033a0| 73 68 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |sh on th|e screen|
|000033b0| 20 77 68 69 6c 65 20 74 | 68 65 20 63 6c 75 74 20 | while t|he clut |
|000033c0| 69 73 20 63 68 61 6e 67 | 69 6e 67 2e 29 20 54 68 |is chang|ing.) Th|
|000033d0| 69 73 20 68 61 73 20 74 | 68 65 0d 73 69 64 65 20 |is has t|he.side |
|000033e0| 65 66 66 65 63 74 20 6f | 66 20 73 79 6e 63 68 72 |effect o|f synchr|
|000033f0| 6f 6e 69 7a 69 6e 67 20 | 79 6f 75 72 20 70 72 6f |onizing |your pro|
|00003400| 67 72 61 6d 20 74 6f 20 | 74 68 65 20 64 69 73 70 |gram to |the disp|
|00003410| 6c 61 79 2c 20 73 69 6e | 63 65 20 74 68 65 20 64 |lay, sin|ce the d|
|00003420| 72 69 76 65 72 0d 64 6f | 65 73 6e 27 74 20 72 65 |river.do|esn't re|
|00003430| 74 75 72 6e 20 63 6f 6e | 74 72 6f 6c 20 75 6e 74 |turn con|trol unt|
|00003440| 69 6c 20 74 68 65 20 56 | 42 4c 20 69 6e 74 65 72 |il the V|BL inter|
|00003450| 76 61 6c 20 6f 63 63 75 | 72 73 2e 20 45 69 74 68 |val occu|rs. Eith|
|00003460| 65 72 20 6f 66 20 74 68 | 65 73 65 0d 73 79 6e 63 |er of th|ese.sync|
|00003470| 68 72 6f 6e 69 7a 61 74 | 69 6f 6e 20 6d 65 74 68 |hronizat|ion meth|
|00003480| 6f 64 73 20 28 31 20 6f | 72 20 32 29 20 6d 61 79 |ods (1 o|r 2) may|
|00003490| 20 66 61 69 6c 2c 20 64 | 65 70 65 6e 64 69 6e 67 | fail, d|epending|
|000034a0| 20 6f 6e 20 77 68 69 63 | 68 20 76 69 64 65 6f 20 | on whic|h video |
|000034b0| 63 61 72 64 20 79 6f 75 | 0d 68 61 76 65 2c 20 77 |card you|.have, w|
|000034c0| 68 61 74 20 79 6f 75 27 | 76 65 20 73 65 74 20 74 |hat you'|ve set t|
|000034d0| 68 65 20 70 69 78 65 6c | 20 73 69 7a 65 20 74 6f |he pixel| size to|
|000034e0| 20 28 31 20 74 6f 20 33 | 32 20 62 69 74 73 29 2c | (1 to 3|2 bits),|
|000034f0| 20 61 6e 64 20 77 68 65 | 74 68 65 72 20 79 6f 75 | and whe|ther you|
|00003500| 27 76 65 0d 72 61 69 73 | 65 64 20 74 68 65 20 70 |'ve.rais|ed the p|
|00003510| 72 6f 63 65 73 73 6f 72 | 20 70 72 69 6f 72 69 74 |rocessor| priorit|
|00003520| 79 2e 20 54 68 65 20 64 | 65 6d 6f 20 70 72 6f 67 |y. The d|emo prog|
|00003530| 72 61 6d 20 54 69 6d 65 | 56 69 64 65 6f 20 74 65 |ram Time|Video te|
|00003540| 73 74 73 20 62 6f 74 68 | 20 6d 65 74 68 6f 64 73 |sts both| methods|
|00003550| 20 6f 66 0d 73 79 6e 63 | 68 72 6f 6e 69 7a 61 74 | of.sync|hronizat|
|00003560| 69 6f 6e 20 6f 6e 20 61 | 6c 6c 20 79 6f 75 72 20 |ion on a|ll your |
|00003570| 76 69 64 65 6f 20 63 61 | 72 64 73 20 61 74 20 61 |video ca|rds at a|
|00003580| 6c 6c 20 70 69 78 65 6c | 20 73 69 7a 65 73 20 61 |ll pixel| sizes a|
|00003590| 6e 64 20 73 61 76 65 73 | 20 74 68 65 20 72 65 73 |nd saves| the res|
|000035a0| 75 6c 74 73 0d 69 6e 20 | 61 20 74 65 78 74 20 66 |ults.in |a text f|
|000035b0| 69 6c 65 2e 20 28 33 29 | 20 49 20 74 68 69 6e 6b |ile. (3)| I think|
|000035c0| 20 74 68 61 74 20 61 6c | 6c 20 76 69 64 65 6f 20 | that al|l video |
|000035d0| 63 61 72 64 73 20 70 72 | 6f 76 69 64 65 20 61 20 |cards pr|ovide a |
|000035e0| 72 65 61 64 2d 6f 6e 6c | 79 0d 76 65 72 74 69 63 |read-onl|y.vertic|
|000035f0| 61 6c 2d 62 6c 61 6e 6b | 69 6e 67 20 62 69 74 2c |al-blank|ing bit,|
|00003600| 20 62 75 74 20 75 6e 66 | 6f 72 74 75 6e 61 74 65 | but unf|ortunate|
|00003610| 6c 79 20 66 65 77 20 6d | 61 6e 75 66 61 63 74 75 |ly few m|anufactu|
|00003620| 72 65 72 73 20 77 69 6c | 6c 20 74 65 6c 6c 20 79 |rers wil|l tell y|
|00003630| 6f 75 20 69 74 73 0d 61 | 64 64 72 65 73 73 2c 20 |ou its.a|ddress, |
|00003640| 73 6f 20 79 6f 75 20 68 | 61 76 65 20 74 6f 20 66 |so you h|ave to f|
|00003650| 69 6e 64 20 69 74 20 79 | 6f 75 72 73 65 6c 66 20 |ind it y|ourself |
|00003660| 28 74 79 70 69 63 61 6c | 6c 79 20 62 79 20 64 69 |(typical|ly by di|
|00003670| 73 61 73 73 65 6d 62 6c | 69 6e 67 20 74 68 65 20 |sassembl|ing the |
|00003680| 76 69 64 65 6f 0d 64 72 | 69 76 65 72 29 2c 20 77 |video.dr|iver), w|
|00003690| 68 69 63 68 20 69 73 20 | 74 65 64 69 6f 75 73 2e |hich is |tedious.|
|000036a0| 0d 0d 31 2e 20 56 42 4c | 20 49 6e 74 65 72 72 75 |..1. VBL| Interru|
|000036b0| 70 74 73 2e 20 4d 6f 73 | 74 20 76 69 64 65 6f 20 |pts. Mos|t video |
|000036c0| 63 61 72 64 73 20 65 6d | 69 74 20 6f 6e 65 20 56 |cards em|it one V|
|000036d0| 42 4c 20 69 6e 74 65 72 | 72 75 70 74 20 64 75 72 |BL inter|rupt dur|
|000036e0| 69 6e 67 20 65 61 63 68 | 20 76 69 64 65 6f 0d 66 |ing each| video.f|
|000036f0| 72 61 6d 65 2e 20 48 6f | 77 65 76 65 72 2c 20 64 |rame. Ho|wever, d|
|00003700| 75 72 69 6e 67 20 31 39 | 39 30 2d 31 20 41 70 70 |uring 19|90-1 App|
|00003710| 6c 65 20 67 65 6e 65 72 | 61 74 65 64 20 73 6f 6d |le gener|ated som|
|00003720| 65 20 70 6f 6f 72 20 76 | 69 64 65 6f 20 64 72 69 |e poor v|ideo dri|
|00003730| 76 65 72 73 20 66 6f 72 | 20 74 68 65 69 72 0d 63 |vers for| their.c|
|00003740| 61 72 64 73 20 28 22 4d | 61 63 69 6e 74 6f 73 68 |ards ("M|acintosh|
|00003750| 20 44 69 73 70 6c 61 79 | 20 43 61 72 64 22 3a 20 | Display| Card": |
|00003760| 38 a5 32 34 29 20 20 61 | 6e 64 20 74 68 65 20 62 |8.24) a|nd the b|
|00003770| 75 69 6c 74 2d 69 6e 20 | 76 69 64 65 6f 20 69 6e |uilt-in |video in|
|00003780| 20 74 68 65 20 51 75 61 | 64 72 61 20 37 30 30 0d | the Qua|dra 700.|
|00003790| 61 6e 64 20 39 35 30 2e | 20 54 68 65 73 65 20 64 |and 950.| These d|
|000037a0| 72 69 76 65 72 73 20 67 | 65 6e 65 72 61 74 65 20 |rivers g|enerate |
|000037b0| 73 65 76 65 72 61 6c 20 | 69 6e 74 65 72 72 75 70 |several |interrup|
|000037c0| 74 73 20 70 65 72 20 66 | 72 61 6d 65 2e 20 28 4b |ts per f|rame. (K|
|000037d0| 79 6c 65 20 43 61 76 65 | 0d 64 69 73 63 6f 76 65 |yle Cave|.discove|
|000037e0| 72 65 64 20 74 68 61 74 | 20 74 68 65 72 65 20 61 |red that| there a|
|000037f0| 72 65 20 6e 6f 20 65 78 | 74 72 61 20 69 6e 74 65 |re no ex|tra inte|
|00003800| 72 72 75 70 74 73 20 69 | 66 20 74 68 65 20 63 61 |rrupts i|f the ca|
|00003810| 63 68 65 20 69 73 20 64 | 69 73 61 62 6c 65 64 20 |che is d|isabled |
|00003820| 6f 6e 20 74 68 65 0d 51 | 75 61 64 72 61 20 37 30 |on the.Q|uadra 70|
|00003830| 30 2e 29 20 54 68 69 73 | 20 62 65 68 61 76 69 6f |0.) This| behavio|
|00003840| 72 20 69 73 20 63 6f 6e | 74 72 61 72 79 20 74 6f |r is con|trary to|
|00003850| 20 41 70 70 6c 65 27 73 | 20 64 6f 63 75 6d 65 6e | Apple's| documen|
|00003860| 74 61 74 69 6f 6e 2c 20 | 62 75 74 0d 56 42 4c 49 |tation, |but.VBLI|
|00003870| 6e 73 74 61 6c 6c 2e 63 | 20 77 6f 72 6b 73 20 61 |nstall.c| works a|
|00003880| 72 6f 75 6e 64 20 74 68 | 65 20 62 75 67 2c 20 75 |round th|e bug, u|
|00003890| 73 69 6e 67 20 61 20 74 | 69 6d 65 72 20 74 6f 20 |sing a t|imer to |
|000038a0| 64 69 73 63 61 72 64 20 | 74 68 65 20 65 78 63 65 |discard |the exce|
|000038b0| 73 73 0d 69 6e 74 65 72 | 72 75 70 74 73 20 28 61 |ss.inter|rupts (a|
|000038c0| 73 20 73 75 67 67 65 73 | 74 65 64 20 62 79 20 52 |s sugges|ted by R|
|000038d0| 61 79 6e 61 6c 64 20 43 | 6f 6d 74 6f 69 73 29 2e |aynald C|omtois).|
|000038e0| 20 53 6f 6d 65 20 76 69 | 64 65 6f 20 64 72 69 76 | Some vi|deo driv|
|000038f0| 65 72 73 20 74 61 6b 65 | 20 6d 75 6c 74 69 70 6c |ers take| multipl|
|00003900| 65 0d 66 72 61 6d 65 73 | 20 74 6f 20 6c 6f 61 64 |e.frames| to load|
|00003910| 20 74 68 65 20 63 6c 75 | 74 2c 20 61 6e 64 20 62 | the clu|t, and b|
|00003920| 6c 6f 63 6b 20 69 6e 74 | 65 72 72 75 70 74 73 20 |lock int|errupts |
|00003930| 77 68 69 6c 65 20 64 6f | 69 6e 67 20 73 6f 2c 20 |while do|ing so, |
|00003940| 77 72 65 61 6b 69 6e 67 | 20 68 61 76 6f 63 0d 77 |wreaking| havoc.w|
|00003950| 69 74 68 20 61 6e 79 20 | 61 74 74 65 6d 70 74 20 |ith any |attempt |
|00003960| 74 6f 20 63 6f 75 6e 74 | 20 66 72 61 6d 65 73 2e |to count| frames.|
|00003970| 20 41 70 70 6c 65 27 73 | 20 76 69 64 65 6f 20 64 | Apple's| video d|
|00003980| 72 69 76 65 72 73 20 70 | 72 6f 64 75 63 65 64 20 |rivers p|roduced |
|00003990| 62 65 66 6f 72 65 20 31 | 39 39 30 20 61 6e 64 0d |before 1|990 and.|
|000039a0| 73 69 6e 63 65 20 31 39 | 39 32 20 73 65 65 6d 20 |since 19|92 seem |
|000039b0| 74 6f 20 62 65 20 6f 6b | 2e 20 28 54 68 69 73 20 |to be ok|. (This |
|000039c0| 6d 61 79 20 62 65 20 69 | 6e 20 72 65 73 70 6f 6e |may be i|n respon|
|000039d0| 73 65 20 74 6f 20 6d 79 | 20 6d 61 6e 79 20 62 75 |se to my| many bu|
|000039e0| 67 20 72 65 70 6f 72 74 | 73 2e 29 20 54 72 79 0d |g report|s.) Try.|
|000039f0| 74 68 65 20 64 65 6d 6f | 73 20 54 69 6d 65 56 69 |the demo|s TimeVi|
|00003a00| 64 65 6f 20 61 6e 64 20 | 4e 6f 69 73 65 56 42 4c |deo and |NoiseVBL|
|00003a10| 2e 0d 20 20 20 20 20 54 | 68 65 20 62 65 73 74 20 |.. T|he best |
|00003a20| 63 75 72 72 65 6e 74 20 | 74 68 65 6f 72 79 20 28 |current |theory (|
|00003a30| 64 75 65 20 74 6f 20 52 | 61 79 6e 61 6c 64 20 43 |due to R|aynald C|
|00003a40| 6f 6d 74 6f 69 73 29 20 | 6f 6e 20 74 68 65 20 73 |omtois) |on the s|
|00003a50| 6f 75 72 63 65 20 6f 66 | 20 74 68 65 20 65 78 74 |ource of| the ext|
|00003a60| 72 61 0d 69 6e 74 65 72 | 72 75 70 74 73 20 69 73 |ra.inter|rupts is|
|00003a70| 20 74 68 61 74 20 74 68 | 65 20 63 61 72 64 20 69 | that th|e card i|
|00003a80| 73 20 61 73 73 65 72 74 | 69 6e 67 20 74 68 65 20 |s assert|ing the |
|00003a90| 69 6e 74 65 72 72 75 70 | 74 20 6c 69 6e 65 20 66 |interrup|t line f|
|00003aa0| 6f 72 20 61 20 66 69 78 | 65 64 0d 64 75 72 61 74 |or a fix|ed.durat|
|00003ab0| 69 6f 6e 2c 20 70 65 72 | 68 61 70 73 20 31 20 6d |ion, per|haps 1 m|
|00003ac0| 73 2e 20 41 73 20 6c 6f | 6e 67 20 61 73 20 79 6f |s. As lo|ng as yo|
|00003ad0| 75 20 61 72 65 20 69 6e | 20 74 68 65 20 69 6e 74 |u are in| the int|
|00003ae0| 65 72 72 75 70 74 2d 68 | 61 6e 64 6c 69 6e 67 20 |errupt-h|andling |
|00003af0| 72 6f 75 74 69 6e 65 20 | 28 6f 72 0d 6f 6e 65 20 |routine |(or.one |
|00003b00| 6f 66 20 68 69 67 68 65 | 72 20 70 72 69 6f 72 69 |of highe|r priori|
|00003b10| 74 79 29 2c 20 6f 74 68 | 65 72 20 69 6e 74 65 72 |ty), oth|er inter|
|00003b20| 72 75 70 74 73 20 6f 66 | 20 74 68 65 20 73 61 6d |rupts of| the sam|
|00003b30| 65 20 6c 65 76 65 6c 20 | 61 72 65 20 64 69 73 61 |e level |are disa|
|00003b40| 62 6c 65 64 2e 20 49 66 | 20 79 6f 75 0d 73 74 61 |bled. If| you.sta|
|00003b50| 79 20 69 6e 20 74 68 65 | 20 69 6e 74 65 72 72 75 |y in the| interru|
|00003b60| 70 74 20 72 6f 75 74 69 | 6e 65 20 66 6f 72 20 6c |pt routi|ne for l|
|00003b70| 6f 6e 67 20 65 6e 6f 75 | 67 68 2c 20 74 68 65 20 |ong enou|gh, the |
|00003b80| 69 6e 74 65 72 72 75 70 | 74 20 6c 69 6e 65 20 68 |interrup|t line h|
|00003b90| 61 73 20 74 69 6d 65 20 | 74 6f 20 62 65 0d 72 65 |as time |to be.re|
|00003ba0| 6c 65 61 73 65 64 20 61 | 6e 64 20 79 6f 75 20 64 |leased a|nd you d|
|00003bb0| 6f 6e 27 74 20 67 65 74 | 20 61 20 73 65 63 6f 6e |on't get| a secon|
|00003bc0| 64 20 69 6e 74 65 72 72 | 75 70 74 2c 20 6f 74 68 |d interr|upt, oth|
|00003bd0| 65 72 77 69 73 65 20 79 | 6f 75 20 64 6f 2e 0d 0d |erwise y|ou do...|
|00003be0| 32 2e 20 4c 4f 41 44 49 | 4e 47 20 54 48 45 20 43 |2. LOADI|NG THE C|
|00003bf0| 4c 55 54 2e 20 49 74 20 | 73 65 65 6d 73 20 74 68 |LUT. It |seems th|
|00003c00| 61 74 20 61 6c 6c 20 76 | 69 64 65 6f 20 64 72 69 |at all v|ideo dri|
|00003c10| 76 65 72 73 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |vers aut|omatical|
|00003c20| 6c 79 20 73 79 6e 63 68 | 72 6f 6e 69 7a 65 0d 63 |ly synch|ronize.c|
|00003c30| 6c 75 74 2d 6c 6f 61 64 | 69 6e 67 20 74 6f 20 74 |lut-load|ing to t|
|00003c40| 68 65 20 76 69 64 65 6f | 20 66 72 61 6d 65 2e 20 |he video| frame. |
|00003c50| 41 70 70 6c 65 27 73 20 | 67 75 69 64 65 6c 69 6e |Apple's |guidelin|
|00003c60| 65 73 20 66 6f 72 20 76 | 69 64 65 6f 20 64 72 69 |es for v|ideo dri|
|00003c70| 76 65 72 73 20 28 69 6e | 20 74 68 65 0d 62 6f 6f |vers (in| the.boo|
|00003c80| 6b 20 44 65 73 69 67 6e | 69 6e 67 20 43 61 72 64 |k Design|ing Card|
|00003c90| 73 20 61 6e 64 20 44 72 | 69 76 65 72 73 29 20 73 |s and Dr|ivers) s|
|00003ca0| 74 61 74 65 20 74 68 61 | 74 20 74 68 65 20 76 69 |tate tha|t the vi|
|00003cb0| 64 65 6f 20 64 72 69 76 | 65 72 20 6d 61 79 20 73 |deo driv|er may s|
|00003cc0| 61 76 65 20 74 68 65 0d | 63 6c 75 74 2d 6c 6f 61 |ave the.|clut-loa|
|00003cd0| 64 20 28 69 2e 65 2e 20 | 73 65 74 2d 65 6e 74 72 |d (i.e. |set-entr|
|00003ce0| 69 65 73 29 20 72 65 71 | 75 65 73 74 20 61 6e 64 |ies) req|uest and|
|00003cf0| 20 64 65 66 65 72 20 74 | 68 65 20 61 63 74 75 61 | defer t|he actua|
|00003d00| 6c 20 6c 6f 61 64 69 6e | 67 20 75 6e 74 69 6c 20 |l loadin|g until |
|00003d10| 74 68 65 20 6e 65 78 74 | 0d 56 42 4c 20 69 6e 74 |the next|.VBL int|
|00003d20| 65 72 72 75 70 74 2e 20 | 53 75 63 68 20 76 69 64 |errupt. |Such vid|
|00003d30| 65 6f 20 64 72 69 76 65 | 72 73 20 72 65 74 75 72 |eo drive|rs retur|
|00003d40| 6e 20 61 6c 6d 6f 73 74 | 20 69 6d 6d 65 64 69 61 |n almost| immedia|
|00003d50| 74 65 6c 79 20 61 66 74 | 65 72 20 61 20 73 65 74 |tely aft|er a set|
|00003d60| 2d 65 6e 74 72 69 65 73 | 0d 72 65 71 75 65 73 74 |-entries|.request|
|00003d70| 2e 20 54 68 75 73 2c 20 | 61 6c 74 68 6f 75 67 68 |. Thus, |although|
|00003d80| 20 74 68 65 20 61 63 74 | 75 61 6c 20 63 6c 75 74 | the act|ual clut|
|00003d90| 20 6c 6f 61 64 20 77 69 | 6c 6c 20 62 65 20 73 79 | load wi|ll be sy|
|00003da0| 6e 63 68 72 6f 6e 69 7a | 65 64 20 74 6f 20 74 68 |nchroniz|ed to th|
|00003db0| 65 0d 64 69 73 70 6c 61 | 79 2c 20 79 6f 75 72 20 |e.displa|y, your |
|00003dc0| 70 72 6f 67 72 61 6d 20 | 77 69 6c 6c 20 62 65 20 |program |will be |
|00003dd0| 61 73 79 6e 63 68 72 6f | 6e 6f 75 73 20 62 65 63 |asynchro|nous bec|
|00003de0| 61 75 73 65 20 74 68 65 | 20 47 44 53 65 74 45 6e |ause the| GDSetEn|
|00003df0| 74 72 69 65 73 20 63 61 | 6c 6c 20 77 69 6c 6c 0d |tries ca|ll will.|
|00003e00| 72 65 74 75 72 6e 20 69 | 6d 6d 65 64 69 61 74 65 |return i|mmediate|
|00003e10| 6c 79 2e 20 48 6f 77 65 | 76 65 72 2c 20 41 70 70 |ly. Howe|ver, App|
|00003e20| 6c 65 27 73 20 67 75 69 | 64 65 6c 69 6e 65 73 20 |le's gui|delines |
|00003e30| 73 74 61 74 65 20 74 68 | 61 74 20 69 66 20 74 68 |state th|at if th|
|00003e40| 65 20 70 72 6f 63 65 73 | 73 6f 72 27 73 0d 69 6e |e proces|sor's.in|
|00003e50| 74 65 72 72 75 70 74 20 | 70 72 69 6f 72 69 74 79 |terrupt |priority|
|00003e60| 20 68 61 73 20 62 65 65 | 6e 20 72 61 69 73 65 64 | has bee|n raised|
|00003e70| 2c 20 73 75 73 70 65 6e | 64 69 6e 67 20 74 68 65 |, suspen|ding the|
|00003e80| 20 76 69 64 65 6f 20 63 | 61 72 64 27 73 20 56 42 | video c|ard's VB|
|00003e90| 4c 20 69 6e 74 65 72 72 | 75 70 74 73 2c 0d 74 68 |L interr|upts,.th|
|00003ea0| 65 6e 20 74 68 65 20 76 | 69 64 65 6f 20 64 72 69 |en the v|ideo dri|
|00003eb0| 76 65 72 20 73 68 6f 75 | 6c 64 20 61 6c 77 61 79 |ver shou|ld alway|
|00003ec0| 73 20 6c 6f 61 64 20 74 | 68 65 20 63 6c 75 74 20 |s load t|he clut |
|00003ed0| 62 65 66 6f 72 65 20 72 | 65 74 75 72 6e 69 6e 67 |before r|eturning|
|00003ee0| 2c 20 77 68 69 63 68 20 | 77 6f 75 6c 64 0d 73 79 |, which |would.sy|
|00003ef0| 6e 63 68 72 6f 6e 69 7a | 65 20 79 6f 75 72 20 70 |nchroniz|e your p|
|00003f00| 72 6f 67 72 61 6d 20 74 | 6f 20 74 68 65 20 64 69 |rogram t|o the di|
|00003f10| 73 70 6c 61 79 2e 20 59 | 6f 75 20 63 61 6e 20 72 |splay. Y|ou can r|
|00003f20| 61 69 73 65 20 61 6e 64 | 20 6c 6f 77 65 72 20 74 |aise and| lower t|
|00003f30| 68 65 20 70 72 6f 63 65 | 73 73 6f 72 0d 70 72 69 |he proce|ssor.pri|
|00003f40| 6f 72 69 74 79 20 62 79 | 20 63 61 6c 6c 69 6e 67 |ority by| calling|
|00003f50| 20 74 68 65 20 56 69 64 | 65 6f 54 6f 6f 6c 62 6f | the Vid|eoToolbo|
|00003f60| 78 20 72 6f 75 74 69 6e | 65 20 53 65 74 50 72 69 |x routin|e SetPri|
|00003f70| 6f 72 69 74 79 2e 63 2e | 20 54 68 65 20 70 72 69 |ority.c.| The pri|
|00003f80| 6f 72 69 74 79 20 69 73 | 0d 6e 6f 72 6d 61 6c 6c |ority is|.normall|
|00003f90| 79 20 7a 65 72 6f 2e 20 | 54 69 6d 65 56 69 64 65 |y zero. |TimeVide|
|00003fa0| 6f 20 6d 65 61 73 75 72 | 65 73 20 74 69 6d 69 6e |o measur|es timin|
|00003fb0| 67 20 61 74 20 62 6f 74 | 68 20 6e 6f 72 6d 61 6c |g at bot|h normal|
|00003fc0| 20 61 6e 64 20 68 69 67 | 68 20 70 73 69 6f 72 69 | and hig|h psiori|
|00003fd0| 74 79 2e 0d 20 20 20 20 | 20 42 65 20 61 77 61 72 |ty.. | Be awar|
|00003fe0| 65 20 74 68 61 74 20 61 | 20 73 65 74 2d 65 6e 74 |e that a| set-ent|
|00003ff0| 72 69 65 73 20 72 65 71 | 75 65 73 74 2c 20 69 2e |ries req|uest, i.|
|00004000| 65 2e 20 63 61 6c 6c 69 | 6e 67 20 47 44 53 65 74 |e. calli|ng GDSet|
|00004010| 45 6e 74 72 69 65 73 28 | 29 2c 20 64 6f 65 73 20 |Entries(|), does |
|00004020| 6e 6f 74 0d 6e 65 63 65 | 73 73 61 72 69 6c 79 20 |not.nece|ssarily |
|00004030| 77 61 69 74 20 66 6f 72 | 20 74 68 65 20 62 65 67 |wait for| the beg|
|00004040| 69 6e 6e 69 6e 67 20 6f | 66 20 74 68 65 20 6e 65 |inning o|f the ne|
|00004050| 78 74 20 76 65 72 74 69 | 63 61 6c 20 62 6c 61 6e |xt verti|cal blan|
|00004060| 6b 69 6e 67 20 69 6e 74 | 65 72 76 61 6c 2e 20 49 |king int|erval. I|
|00004070| 74 0d 6d 69 67 68 74 20 | 6d 65 72 65 6c 79 20 77 |t.might |merely w|
|00004080| 61 69 74 20 75 6e 74 69 | 6c 20 62 6c 61 6e 6b 69 |ait unti|l blanki|
|00004090| 6e 67 20 69 73 20 74 72 | 75 65 2e 20 41 73 20 61 |ng is tr|ue. As a|
|000040a0| 20 72 65 73 75 6c 74 20 | 74 77 6f 20 73 75 63 63 | result |two succ|
|000040b0| 65 73 73 69 76 65 0d 47 | 44 53 65 74 45 6e 74 72 |essive.G|DSetEntr|
|000040c0| 69 65 73 20 63 61 6c 6c | 73 20 6d 69 67 68 74 20 |ies call|s might |
|000040d0| 6f 63 63 75 72 20 64 75 | 72 69 6e 67 20 74 68 65 |occur du|ring the|
|000040e0| 20 73 61 6d 65 20 62 6c | 61 6e 6b 69 6e 67 20 69 | same bl|anking i|
|000040f0| 6e 74 65 72 76 61 6c 2e | 20 54 6f 20 67 65 74 20 |nterval.| To get |
|00004100| 65 78 61 63 74 6c 79 0d | 6f 6e 65 20 63 61 6c 6c |exactly.|one call|
|00004110| 20 70 65 72 20 66 72 61 | 6d 65 20 79 6f 75 20 6d | per fra|me you m|
|00004120| 61 79 20 6e 65 65 64 20 | 74 6f 20 64 65 6c 61 79 |ay need |to delay|
|00004130| 20 66 6f 72 20 61 20 73 | 75 69 74 61 62 6c 65 20 | for a s|uitable |
|00004140| 69 6e 74 65 72 76 61 6c | 20 28 70 65 72 68 61 70 |interval| (perhap|
|00004150| 73 20 31 20 6d 73 29 0d | 62 65 66 6f 72 65 20 63 |s 1 ms).|before c|
|00004160| 61 6c 6c 69 6e 67 20 69 | 74 20 61 67 61 69 6e 2e |alling i|t again.|
|00004170| 0d 20 20 20 20 20 4d 6f | 73 74 20 76 69 64 65 6f |. Mo|st video|
|00004180| 20 64 72 69 76 65 72 73 | 20 74 68 61 74 20 49 27 | drivers| that I'|
|00004190| 76 65 20 74 65 73 74 65 | 64 20 73 65 65 6d 20 74 |ve teste|d seem t|
|000041a0| 6f 20 62 65 20 73 79 6e | 63 68 72 6f 6e 6f 75 73 |o be syn|chronous|
|000041b0| 20 61 6e 64 20 72 65 6c | 69 61 62 6c 79 0d 74 61 | and rel|iably.ta|
|000041c0| 6b 65 20 65 78 61 63 74 | 6c 79 20 6f 6e 65 20 66 |ke exact|ly one f|
|000041d0| 72 61 6d 65 20 74 6f 20 | 6c 6f 61 64 20 74 68 65 |rame to |load the|
|000041e0| 20 63 6c 75 74 2e 20 48 | 6f 77 65 76 65 72 2c 20 | clut. H|owever, |
|000041f0| 73 6f 6d 65 20 76 69 64 | 65 6f 20 64 72 69 76 65 |some vid|eo drive|
|00004200| 72 73 20 74 61 6b 65 0d | 6c 6f 6e 67 65 73 2c 20 |rs take.|longes, |
|00004210| 65 2e 67 2e 20 61 6e 79 | 20 6c 6f 61 64 69 6e 67 |e.g. any| loading|
|00004220| 20 6f 66 20 74 68 65 20 | 63 6c 75 74 20 6f 6e 20 | of the |clut on |
|00004230| 41 70 70 6c 65 27 73 20 | 6e 65 77 20 76 69 64 65 |Apple's |new vide|
|00004240| 6f 20 63 61 72 64 73 20 | 28 22 4d 61 63 69 6e 74 |o cards |("Macint|
|00004250| 6f 73 68 0d 44 69 73 70 | 6c 61 79 20 43 61 72 64 |osh.Disp|lay Card|
|00004260| 22 3a 20 38 a5 32 34 29 | 20 74 61 6b 65 73 20 33 |": 8.24)| takes 3|
|00004270| 30 20 6d 73 2d 2d 74 77 | 6f 20 66 72 61 6d 65 73 |0 ms--tw|o frames|
|00004280| 2d 2d 77 68 69 63 68 20 | 69 73 20 75 6e 61 63 63 |--which |is unacc|
|00004290| 65 70 74 61 62 6c 79 20 | 73 6c 6f 77 20 66 6f 72 |eptably |slow for|
|000042a0| 0d 6c 6f 6f 6b 75 70 20 | 74 61 62 6c 65 20 61 6e |.lookup |table an|
|000042b0| 69 6d 61 74 69 6f 6e 2e | 20 54 68 65 20 54 72 75 |imation.| The Tru|
|000042c0| 65 56 69 73 69 6f 6e 20 | 4e 75 56 69 73 74 61 20 |eVision |NuVista |
|000042d0| 73 65 65 6d 73 20 74 6f | 20 62 65 20 61 73 79 6e |seems to| be asyn|
|000042e0| 63 68 72 6f 6e 6f 75 73 | 2e 0d 50 72 65 73 75 6d |chronous|..Presum|
|000042f0| 61 62 6c 79 20 74 68 65 | 20 6f 6e 2d 62 6f 61 72 |ably the| on-boar|
|00004300| 64 20 70 72 6f 63 65 73 | 73 6f 72 20 61 63 63 65 |d proces|sor acce|
|00004310| 70 74 73 20 74 68 65 20 | 63 6c 75 74 20 69 6e 66 |pts the |clut inf|
|00004320| 6f 72 6d 61 74 69 6f 6e | 20 61 74 20 61 6e 79 20 |ormation| at any |
|00004330| 74 69 6d 65 20 61 6e 64 | 0d 61 63 74 75 61 6c 6c |time and|.actuall|
|00004340| 79 20 75 70 64 61 74 65 | 73 20 74 68 65 20 63 6c |y update|s the cl|
|00004350| 75 74 20 64 75 72 69 6e | 67 20 74 68 65 20 6e 65 |ut durin|g the ne|
|00004360| 78 74 20 76 65 72 74 69 | 63 61 6c 20 62 6c 61 6e |xt verti|cal blan|
|00004370| 6b 69 6e 67 20 69 6e 74 | 65 72 76 61 6c 2e 20 48 |king int|erval. H|
|00004380| 6f 77 65 76 65 72 2c 0d | 74 68 69 73 20 6d 65 61 |owever,.|this mea|
|00004390| 6e 73 20 74 68 61 74 20 | 61 73 6b 69 6e 67 20 74 |ns that |asking t|
|000043a0| 68 65 20 76 69 64 65 6f | 20 64 72 69 76 65 72 20 |he video| driver |
|000043b0| 74 6f 20 6c 6f 61 64 20 | 74 68 65 20 63 6c 75 74 |to load |the clut|
|000043c0| 20 64 6f 65 73 6e 27 74 | 20 68 61 76 65 20 74 68 | doesn't| have th|
|000043d0| 65 20 75 73 65 66 75 6c | 0d 73 69 64 65 20 65 66 |e useful|.side ef|
|000043e0| 66 65 63 74 20 6f 66 20 | 73 79 6e 63 68 72 6f 6e |fect of |synchron|
|000043f0| 69 7a 69 6e 67 20 74 68 | 65 20 4d 61 63 20 70 72 |izing th|e Mac pr|
|00004400| 6f 67 72 61 6d 20 74 6f | 20 74 68 65 20 64 69 73 |ogram to| the dis|
|00004410| 70 6c 61 79 2e 20 54 68 | 65 20 4e 75 56 69 73 74 |play. Th|e NuVist|
|00004420| 61 20 74 61 6b 65 73 0d | 61 62 6f 75 74 20 30 2e |a takes.|about 0.|
|00004430| 33 20 66 72 61 6d 65 73 | 20 28 69 2e 65 2e 20 61 |3 frames| (i.e. a|
|00004440| 20 66 65 77 20 6d 73 29 | 20 74 6f 20 72 65 6c 6f | few ms)| to relo|
|00004450| 61 64 20 74 68 65 20 77 | 68 6f 6c 65 20 63 6c 75 |ad the w|hole clu|
|00004460| 74 20 77 68 65 6e 20 69 | 6e 20 38 2c 20 31 36 2c |t when i|n 8, 16,|
|00004470| 20 6f 72 0d 33 32 2d 62 | 69 74 20 6d 6f 64 65 2c | or.32-b|it mode,|
|00004480| 20 62 75 74 20 74 61 6b | 65 73 20 73 65 76 65 72 | but tak|es sever|
|00004490| 61 6c 20 66 72 61 6d 65 | 73 20 28 69 2e 65 2e 20 |al frame|s (i.e. |
|000044a0| 74 65 6e 73 20 6f 66 20 | 6d 73 29 20 77 68 65 6e |tens of |ms) when|
|000044b0| 20 69 6e 20 31 2c 20 32 | 2c 20 6f 72 20 34 2d 62 | in 1, 2|, or 4-b|
|000044c0| 69 74 0d 6d 6f 64 65 20 | 28 70 72 65 73 75 6d 61 |it.mode |(presuma|
|000044d0| 62 6c 79 20 62 65 63 61 | 75 73 65 20 74 68 65 20 |bly beca|use the |
|000044e0| 66 72 61 63 74 69 6f 6e | 61 6c 20 62 79 74 65 20 |fraction|al byte |
|000044f0| 61 64 64 72 65 73 73 69 | 6e 67 20 69 73 20 73 6c |addressi|ng is sl|
|00004500| 6f 77 29 2e 20 49 20 68 | 61 76 65 6e 27 74 0d 63 |ow). I h|aven't.c|
|00004510| 68 65 63 6b 65 64 2c 20 | 62 75 74 20 70 72 65 73 |hecked, |but pres|
|00004520| 75 6d 61 62 6c 79 20 74 | 68 65 20 4e 75 56 69 73 |umably t|he NuVis|
|00004530| 74 61 20 64 72 69 76 65 | 72 20 77 6f 75 6c 64 20 |ta drive|r would |
|00004540| 62 65 63 6f 6d 65 20 73 | 79 6e 63 68 72 6f 6e 6f |become s|ynchrono|
|00004550| 75 73 2c 20 61 73 0d 73 | 70 65 63 69 66 69 65 64 |us, as.s|pecified|
|00004560| 20 62 79 20 41 70 70 6c | 65 2c 20 69 66 20 74 68 | by Appl|e, if th|
|00004570| 65 20 70 72 6f 63 65 73 | 73 6f 72 20 70 72 69 6f |e proces|sor prio|
|00004580| 72 69 74 79 20 77 65 72 | 65 20 72 61 69 73 65 64 |rity wer|e raised|
|00004590| 2e 0d 20 20 20 20 20 53 | 65 74 45 6e 74 72 69 65 |.. S|etEntrie|
|000045a0| 73 51 75 69 63 6b 6c 79 | 2e 63 2d 2d 77 72 69 74 |sQuickly|.c--writ|
|000045b0| 74 65 6e 20 70 72 69 6d | 61 72 69 6c 79 20 62 79 |ten prim|arily by|
|000045c0| 20 52 61 79 6e 61 6c 64 | 20 43 6f 6d 74 6f 69 73 | Raynald| Comtois|
|000045d0| 2c 20 50 65 74 65 72 20 | 4c 65 6e 6e 69 65 2c 0d |, Peter |Lennie,.|
|000045e0| 61 6e 64 20 42 69 6c 6c | 20 48 61 61 6b 65 2d 2d |and Bill| Haake--|
|000045f0| 70 72 6f 76 69 64 65 73 | 20 66 61 73 74 20 63 6c |provides| fast cl|
|00004600| 75 74 20 6c 6f 61 64 69 | 6e 67 20 66 6f 72 20 6d |ut loadi|ng for m|
|00004610| 61 6e 79 20 70 6f 70 75 | 6c 61 72 20 76 69 64 65 |any popu|lar vide|
|00004620| 6f 20 64 65 76 69 63 65 | 73 2e 20 54 72 79 0d 54 |o device|s. Try.T|
|00004630| 69 6d 65 56 69 64 65 6f | 2e 0d 20 20 20 20 20 49 |imeVideo|.. I|
|00004640| 66 20 38 2d 62 69 74 20 | 70 69 78 65 6c 73 20 61 |f 8-bit |pixels a|
|00004650| 72 65 20 65 6e 6f 75 67 | 68 2c 20 63 6f 6e 73 69 |re enoug|h, consi|
|00004660| 64 65 72 20 62 75 79 69 | 6e 67 20 41 70 70 6c 65 |der buyi|ng Apple|
|00004670| 27 73 20 6f 6c 64 20 22 | 54 6f 62 79 22 20 6f 72 |'s old "|Toby" or|
|00004680| 20 22 54 46 42 22 0d 76 | 69 64 65 6f 20 63 61 72 | "TFB".v|ideo car|
|00004690| 64 73 2c 20 73 69 6e 63 | 65 20 74 68 65 79 20 77 |ds, sinc|e they w|
|000046a0| 6f 72 6b 20 66 69 6e 65 | 2c 20 61 6e 64 20 63 6f |ork fine|, and co|
|000046b0| 73 74 20 6f 6e 6c 79 20 | 24 39 30 20 65 61 63 68 |st only |$90 each|
|000046c0| 20 66 72 6f 6d 20 53 68 | 72 65 76 65 20 53 79 73 | from Sh|reve Sys|
|000046d0| 74 65 6d 73 0d 28 38 30 | 30 29 2d 32 32 37 2d 33 |tems.(80|0)-227-3|
|000046e0| 39 37 31 2e 0d 0d 33 2e | 20 42 4c 41 4e 4b 49 4e |971...3.| BLANKIN|
|000046f0| 47 20 42 49 54 2e 20 41 | 70 70 61 72 65 6e 74 6c |G BIT. A|pparentl|
|00004700| 79 20 61 6c 6c 20 76 69 | 64 65 6f 20 63 61 72 64 |y all vi|deo card|
|00004710| 73 20 68 61 76 65 20 61 | 20 62 6c 61 6e 6b 69 6e |s have a| blankin|
|00004720| 67 20 62 69 74 20 28 74 | 65 6c 6c 69 6e 67 20 77 |g bit (t|elling w|
|00004730| 68 65 74 68 65 72 0d 74 | 68 65 20 76 69 64 65 6f |hether.t|he video|
|00004740| 20 73 69 67 6e 61 6c 20 | 69 73 20 69 6e 20 74 68 | signal |is in th|
|00004750| 65 20 62 6c 61 6e 6b 20 | 70 65 72 69 6f 64 20 62 |e blank |period b|
|00004760| 65 74 77 65 65 6e 20 66 | 72 61 6d 65 73 29 2c 20 |etween f|rames), |
|00004770| 62 75 74 2c 20 61 6c 61 | 73 2c 20 74 68 65 0d 6d |but, ala|s, the.m|
|00004780| 61 6e 75 66 61 63 74 77 | 72 65 72 73 20 6e 65 76 |anufactw|rers nev|
|00004790| 65 72 20 74 65 6c 6c 20 | 79 6f 75 20 77 68 65 72 |er tell |you wher|
|000047a0| 65 20 69 74 20 69 73 2e | 20 59 6f 75 20 63 6f 75 |e it is.| You cou|
|000047b0| 6c 64 20 66 69 67 75 72 | 65 20 6f 75 74 20 77 68 |ld figur|e out wh|
|000047c0| 69 63 68 20 62 69 74 20 | 62 79 0d 64 69 73 61 73 |ich bit |by.disas|
|000047d0| 73 65 6d 62 6c 69 6e 67 | 20 74 68 65 20 64 72 69 |sembling| the dri|
|000047e0| 76 65 72 2c 20 61 73 20 | 49 20 64 69 64 20 66 6f |ver, as |I did fo|
|000047f0| 72 20 74 68 65 20 41 70 | 70 6c 65 20 54 6f 62 79 |r the Ap|ple Toby|
|00004800| 20 61 6e 64 20 54 46 42 | 20 76 69 64 65 6f 20 63 | and TFB| video c|
|00004810| 61 72 64 73 20 28 6e 6f | 0d 6c 6f 6e 67 65 72 20 |ards (no|.longer |
|00004820| 73 6f 6c 64 20 62 79 20 | 41 70 70 6c 65 3b 20 63 |sold by |Apple; c|
|00004830| 61 6c 6c 20 53 68 72 65 | 76 65 20 61 74 20 70 68 |all Shre|ve at ph|
|00004840| 6f 6e 65 20 20 6e 75 6d | 62 65 72 20 67 69 76 65 |one num|ber give|
|00004850| 6e 20 61 62 6f 76 65 29 | 2e 20 50 65 72 68 61 70 |n above)|. Perhap|
|00004860| 73 20 6f 6e 65 0d 63 6f | 75 6c 64 20 77 72 69 74 |s one.co|uld writ|
|00004870| 65 20 61 20 70 72 6f 67 | 72 61 6d 20 74 68 61 74 |e a prog|ram that|
|00004880| 20 77 6f 75 6c 64 20 66 | 69 6e 64 20 74 68 65 20 | would f|ind the |
|00004890| 56 42 4c 20 62 69 74 20 | 61 75 74 6f 6d 61 74 69 |VBL bit |automati|
|000048a0| 63 61 6c 6c 79 2c 20 62 | 79 20 6c 6f 6f 6b 69 6e |cally, b|y lookin|
|000048b0| 67 20 66 6f 72 0d 61 6e | 79 20 62 69 74 20 74 68 |g for.an|y bit th|
|000048c0| 61 74 20 63 68 61 6e 67 | 65 73 20 61 74 20 74 68 |at chang|es at th|
|000048d0| 65 20 72 69 67 68 74 20 | 66 72 65 71 75 65 6e 63 |e right |frequenc|
|000048e0| 79 2e 0d 20 20 20 20 20 | 57 61 69 74 46 6f 72 42 |y.. |WaitForB|
|000048f0| 6c 61 6e 6b 69 6e 67 28 | 29 20 69 6e 20 53 65 74 |lanking(|) in Set|
|00004900| 45 6e 74 72 69 65 73 51 | 75 69 63 6b 6c 79 2e 63 |EntriesQ|uickly.c|
|00004910| 20 74 65 73 74 73 20 74 | 68 65 20 62 6c 61 6e 6b | tests t|he blank|
|00004920| 69 6e 67 20 62 69 74 2c | 20 62 75 74 0d 70 72 65 |ing bit,| but.pre|
|00004930| 73 65 6e 74 6c 79 20 73 | 75 70 70 6f 72 74 73 20 |sently s|upports |
|00004940| 6f 6e 6c 79 20 74 68 65 | 20 28 6f 62 73 6f 6c 65 |only the| (obsole|
|00004950| 74 65 29 20 54 6f 62 79 | 20 61 6e 64 20 54 46 42 |te) Toby| and TFB|
|00004960| 20 76 69 64 65 6f 20 63 | 61 72 64 73 2e 20 48 6f | video c|ards. Ho|
|00004970| 70 65 66 75 6c 6c 79 20 | 6f 74 68 65 72 0d 70 65 |pefully |other.pe|
|00004980| 6f 70 6c 65 20 77 69 6c | 6c 20 65 6e 68 61 6e 63 |ople wil|l enhanc|
|00004990| 65 20 74 68 69 73 20 72 | 6f 75 74 69 6e 65 20 74 |e this r|outine t|
|000049a0| 6f 20 73 75 70 70 6f 72 | 74 20 6d 6f 72 65 20 64 |o suppor|t more d|
|000049b0| 65 76 69 63 65 73 2e 0d | 0d 34 2e 20 43 4f 4e 43 |evices..|.4. CONC|
|000049c0| 4c 55 53 49 4f 4e 2e 20 | 44 6f 6e 27 74 20 74 61 |LUSION. |Don't ta|
|000049d0| 6b 65 20 73 79 6e 63 68 | 72 6f 6e 69 7a 61 74 69 |ke synch|ronizati|
|000049e0| 6f 6e 20 6f 72 20 6c 6f | 6f 6b 75 70 20 74 61 62 |on or lo|okup tab|
|000049f0| 6c 65 20 61 6e 69 6d 61 | 74 69 6f 6e 20 66 6f 72 |le anima|tion for|
|00004a00| 20 67 72 61 6e 74 65 64 | 2e 0d 52 75 6e 20 54 69 | granted|..Run Ti|
|00004a10| 6d 65 56 69 64 65 6f 20 | 74 6f 20 63 68 65 63 6b |meVideo |to check|
|00004a20| 20 6f 75 74 20 79 6f 75 | 72 20 76 69 64 65 6f 20 | out you|r video |
|00004a30| 63 61 72 64 73 2e 0d 0d | 42 2e 20 53 59 4e 43 48 |cards...|B. SYNCH|
|00004a40| 49 4e 47 20 4d 55 4c 54 | 49 50 4c 45 20 56 49 44 |ING MULT|IPLE VID|
|00004a50| 45 4f 20 43 41 52 44 53 | 20 54 4f 20 45 41 43 48 |EO CARDS| TO EACH|
|00004a60| 20 4f 54 48 45 52 0d 0d | 53 4f 46 54 57 41 52 45 | OTHER..|SOFTWARE|
|00004a70| 3a 20 53 68 6f 72 74 20 | 6f 66 20 62 75 74 63 68 |: Short |of butch|
|00004a80| 65 72 69 6e 67 20 74 68 | 65 20 68 61 72 64 77 61 |ering th|e hardwa|
|00004a90| 72 65 2c 20 73 79 6e 63 | 68 69 6e 67 20 74 77 6f |re, sync|hing two|
|00004aa0| 20 76 69 64 65 6f 20 63 | 61 72 64 73 20 69 73 20 | video c|ards is |
|00004ab0| 68 61 72 64 20 74 6f 0d | 64 6f 2e 20 49 74 20 6e |hard to.|do. It n|
|00004ac0| 65 65 64 6e 27 74 20 62 | 65 20 73 6f 2c 20 69 66 |eedn't b|e so, if|
|00004ad0| 20 74 68 65 20 6d 61 6e | 75 66 61 63 74 75 72 65 | the man|ufacture|
|00004ae0| 72 73 20 77 65 72 65 20 | 6d 6f 72 65 20 66 6f 72 |rs were |more for|
|00004af0| 74 68 63 6f 6d 69 6e 67 | 20 61 62 6f 75 74 20 68 |thcoming| about h|
|00004b00| 6f 77 20 74 6f 0d 70 72 | 6f 67 72 61 6d 20 74 68 |ow to.pr|ogram th|
|00004b10| 65 69 72 20 63 61 72 64 | 73 2e 20 42 79 20 64 69 |eir card|s. By di|
|00004b20| 73 61 73 73 65 6d 62 6c | 69 6e 67 20 74 68 65 20 |sassembl|ing the |
|00004b30| 76 69 64 65 6f 20 64 72 | 69 76 65 72 20 66 6f 72 |video dr|iver for|
|00004b40| 20 41 70 70 6c 65 27 73 | 20 6f 72 69 67 69 6e 61 | Apple's| origina|
|00004b50| 6c 0d 22 54 6f 62 79 22 | 20 76 69 64 65 6f 20 63 |l."Toby"| video c|
|00004b60| 61 72 64 73 20 49 20 77 | 6f 72 6b 65 64 20 6f 75 |ards I w|orked ou|
|00004b70| 74 20 74 68 61 74 20 74 | 68 65 72 65 20 61 72 65 |t that t|here are|
|00004b80| 20 68 61 6c 74 20 61 6e | 64 20 72 65 73 74 61 72 | halt an|d restar|
|00004b90| 74 20 63 6f 6d 6d 61 6e | 64 73 20 74 68 61 74 0d |t comman|ds that.|
|00004ba0| 63 61 6e 20 62 65 20 69 | 73 73 75 65 64 20 74 6f |can be i|ssued to|
|00004bb0| 20 74 68 65 20 63 61 72 | 64 2e 20 53 65 76 65 72 | the car|d. Sever|
|00004bc0| 61 6c 20 76 69 64 65 6f | 20 63 61 72 64 73 20 63 |al video| cards c|
|00004bd0| 61 6e 20 62 65 20 73 79 | 6e 63 68 65 64 20 62 79 |an be sy|nched by|
|00004be0| 20 72 65 73 74 61 72 74 | 69 6e 67 20 74 68 65 6d | restart|ing them|
|00004bf0| 0d 61 6c 6c 20 61 74 20 | 6f 6e 63 65 20 28 61 63 |.all at |once (ac|
|00004c00| 74 75 61 6c 6c 79 20 6f | 6e 65 20 61 66 74 65 72 |tually o|ne after|
|00004c10| 20 74 68 65 20 6f 74 68 | 65 72 2c 20 69 6e 20 71 | the oth|er, in q|
|00004c20| 75 69 63 6b 20 73 75 63 | 63 65 73 73 69 6f 6e 29 |uick suc|cession)|
|00004c30| 2e 20 54 68 65 69 72 20 | 71 75 61 72 74 7a 0d 63 |. Their |quartz.c|
|00004c40| 72 79 73 74 61 6c 73 20 | 72 75 6e 20 61 74 20 73 |rystals |run at s|
|00004c50| 6c 69 67 68 74 6c 79 20 | 64 69 66 66 65 72 65 6e |lightly |differen|
|00004c60| 74 20 66 72 65 71 75 65 | 6e 63 69 65 73 20 73 6f |t freque|ncies so|
|00004c70| 20 74 68 65 20 63 61 72 | 64 73 20 73 6c 6f 77 6c | the car|ds slowl|
|00004c80| 79 20 64 72 69 66 74 20 | 6f 75 74 20 6f 66 0d 70 |y drift |out of.p|
|00004c90| 68 61 73 65 20 77 69 74 | 68 20 65 61 63 68 20 6f |hase wit|h each o|
|00004ca0| 74 68 65 72 2c 20 62 75 | 74 20 74 68 61 74 27 73 |ther, bu|t that's|
|00004cb0| 20 73 74 69 6c 6c 20 67 | 6f 6f 64 20 65 6e 6f 75 | still g|ood enou|
|00004cc0| 67 68 20 66 6f 72 20 61 | 20 72 65 6c 61 74 69 76 |gh for a| relativ|
|00004cd0| 65 6c 79 20 62 72 69 65 | 66 0d 76 69 73 75 61 6c |ely brie|f.visual|
|00004ce0| 20 73 74 69 6d 75 6c 75 | 73 2c 20 72 65 73 79 6e | stimulu|s, resyn|
|00004cf0| 63 68 69 6e 67 20 62 65 | 66 6f 72 65 20 65 61 63 |ching be|fore eac|
|00004d00| 68 20 73 74 69 6d 75 6c | 75 73 2e 20 53 6f 66 74 |h stimul|us. Soft|
|00004d10| 77 61 72 65 20 74 6f 20 | 64 6f 20 74 68 69 73 20 |ware to |do this |
|00004d20| 66 6f 72 20 74 68 65 0d | 54 6f 62 79 20 76 69 64 |for the.|Toby vid|
|00004d30| 65 6f 20 63 61 72 64 73 | 20 28 77 68 69 63 68 20 |eo cards| (which |
|00004d40| 61 72 65 20 73 74 69 6c | 6c 20 61 76 61 69 6c 61 |are stil|l availa|
|00004d50| 62 6c 65 20 66 72 6f 6d | 20 53 68 72 65 76 65 20 |ble from| Shreve |
|00004d60| 53 79 73 74 65 6d 73 20 | 28 38 30 30 29 2d 32 32 |Systems |(800)-22|
|00004d70| 37 2d 33 39 37 31 2c 0d | 24 39 30 20 65 61 63 68 |7-3971,.|$90 each|
|00004d80| 29 20 69 73 20 69 6e 20 | 74 68 65 20 56 69 64 65 |) is in |the Vide|
|00004d90| 6f 54 46 42 2e 63 20 66 | 69 6c 65 20 69 6e 20 74 |oTFB.c f|ile in t|
|00004da0| 68 65 20 56 69 64 65 6f | 54 6f 6f 6c 62 6f 78 2e |he Video|Toolbox.|
|00004db0| 20 49 74 20 73 65 65 6d | 73 20 76 65 72 79 20 6c | It seem|s very l|
|00004dc0| 69 6b 65 6c 79 0d 74 68 | 61 74 20 74 68 69 73 20 |ikely.th|at this |
|00004dd0| 61 70 70 72 6f 61 63 68 | 20 69 73 20 61 70 70 6c |approach| is appl|
|00004de0| 69 63 61 62 6c 65 20 74 | 6f 20 6d 6f 73 74 20 76 |icable t|o most v|
|00004df0| 69 64 65 6f 20 63 61 72 | 64 73 2c 20 62 75 74 20 |ideo car|ds, but |
|00004e00| 79 6f 75 20 77 6f 75 6c | 64 20 6e 65 65 64 20 74 |you woul|d need t|
|00004e10| 6f 0d 64 69 73 63 6f 76 | 65 72 20 77 68 61 74 20 |o.discov|er what |
|00004e20| 74 68 65 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |the appr|opriate |
|00004e30| 63 6f 6d 6d 61 6e 64 73 | 20 61 72 65 20 74 6f 20 |commands| are to |
|00004e40| 72 65 73 74 61 72 74 20 | 79 6f 75 72 20 63 61 72 |restart |your car|
|00004e50| 64 73 2e 20 28 4e 6f 72 | 6d 61 6c 6c 79 2c 0d 76 |ds. (Nor|mally,.v|
|00004e60| 69 64 65 6f 20 63 61 72 | 64 73 20 61 72 65 20 72 |ideo car|ds are r|
|00004e70| 65 73 74 61 72 74 65 64 | 20 6f 6e 6c 79 20 61 74 |estarted| only at|
|00004e80| 20 73 79 73 74 65 6d 20 | 72 65 73 74 61 72 74 2e | system |restart.|
|00004e90| 29 20 59 6f 75 20 6d 69 | 67 68 74 20 62 65 20 61 |) You mi|ght be a|
|00004ea0| 62 6c 65 20 74 6f 20 64 | 6f 20 74 68 69 73 0d 62 |ble to d|o this.b|
|00004eb0| 79 20 64 69 73 61 73 73 | 65 6d 62 6c 69 6e 67 20 |y disass|embling |
|00004ec0| 74 68 65 20 76 69 64 65 | 6f 20 64 72 69 76 65 72 |the vide|o driver|
|00004ed0| 73 2c 20 62 75 74 20 70 | 65 72 68 61 70 73 20 74 |s, but p|erhaps t|
|00004ee0| 68 65 20 6d 61 6e 75 66 | 61 63 74 75 72 65 72 20 |he manuf|acturer |
|00004ef0| 77 6f 75 6c 64 20 74 65 | 6c 6c 20 79 6f 75 0d 69 |would te|ll you.i|
|00004f00| 66 20 79 6f 75 20 61 73 | 6b 65 64 20 6e 69 63 65 |f you as|ked nice|
|00004f10| 6c 79 2e 20 28 49 6e 63 | 69 64 65 6e 74 61 6c 6c |ly. (Inc|identall|
|00004f20| 79 2c 20 74 68 65 20 22 | 54 6f 62 79 22 20 76 69 |y, the "|Toby" vi|
|00004f30| 64 65 6f 20 63 61 72 64 | 73 20 61 6c 73 6f 20 68 |deo card|s also h|
|00004f40| 61 76 65 20 61 6e 0d 75 | 6e 64 6f 63 75 6d 65 6e |ave an.u|ndocumen|
|00004f50| 74 65 64 20 72 69 62 62 | 6f 6e 20 63 61 62 6c 65 |ted ribb|on cable|
|00004f60| 20 63 6f 6e 6e 65 63 74 | 6f 72 20 74 68 61 74 20 | connect|or that |
|00004f70| 61 6e 20 41 70 70 6c 65 | 20 65 6e 67 69 6e 65 65 |an Apple| enginee|
|00004f80| 72 20 65 78 70 6c 61 69 | 6e 65 64 20 74 6f 20 6d |r explai|ned to m|
|00004f90| 65 20 63 6f 75 6c 64 0d | 62 65 20 75 73 65 64 20 |e could.|be used |
|00004fa0| 74 6f 20 61 63 68 69 65 | 76 65 20 68 61 72 64 77 |to achie|ve hardw|
|00004fb0| 61 72 65 2d 6c 65 76 65 | 6c 20 73 79 6e 63 68 72 |are-leve|l synchr|
|00004fc0| 6f 6e 69 7a 61 74 69 6f | 6e 2e 20 48 65 20 73 61 |onizatio|n. He sa|
|00004fd0| 69 64 20 69 74 20 6d 69 | 67 68 74 20 6e 6f 74 20 |id it mi|ght not |
|00004fe0| 77 6f 72 6b 2e 20 49 0d | 74 72 69 65 64 2c 20 62 |work. I.|tried, b|
|00004ff0| 75 74 20 6e 65 76 65 72 | 20 67 6f 74 20 69 74 20 |ut never| got it |
|00005000| 74 6f 20 77 6f 72 6b 2e | 29 20 49 20 68 6f 70 65 |to work.|) I hope|
|00005010| 20 79 6f 75 27 6c 6c 20 | 73 68 61 72 65 20 61 6e | you'll |share an|
|00005020| 79 20 75 73 65 66 75 6c | 20 72 65 73 75 6c 74 73 |y useful| results|
|00005030| 20 77 69 74 68 0d 6d 65 | 2e 20 49 27 64 20 6c 6f | with.me|. I'd lo|
|00005040| 76 65 20 74 6f 20 6c 65 | 61 72 6e 20 74 68 65 20 |ve to le|arn the |
|00005050| 72 65 73 74 61 72 74 20 | 63 6f 6d 6d 61 6e 64 73 |restart |commands|
|00005060| 20 66 6f 72 20 6f 74 68 | 65 72 20 76 69 64 65 6f | for oth|er video|
|00005070| 20 63 61 72 64 73 2c 20 | 65 73 70 65 63 69 61 6c | cards, |especial|
|00005080| 6c 79 0d 41 70 70 6c 65 | 27 73 2c 20 61 6e 64 20 |ly.Apple|'s, and |
|00005090| 77 6f 75 6c 64 20 61 64 | 64 20 73 75 70 70 6f 72 |would ad|d suppor|
|000050a0| 74 20 66 6f 72 20 74 68 | 65 6d 20 74 6f 20 74 68 |t for th|em to th|
|000050b0| 65 20 56 69 64 65 6f 54 | 6f 6f 6c 62 6f 78 20 73 |e VideoT|oolbox s|
|000050c0| 6f 66 74 77 61 72 65 2e | 0d 0d 48 41 52 44 57 41 |oftware.|..HARDWA|
|000050d0| 52 45 3a 20 44 61 76 69 | 64 20 42 72 61 69 6e 61 |RE: Davi|d Braina|
|000050e0| 72 64 20 3c 62 72 61 69 | 6e 61 72 64 40 63 6f 6e |rd <brai|nard@con|
|000050f0| 64 6f 72 2e 70 73 79 63 | 68 2e 75 63 73 62 2e 65 |dor.psyc|h.ucsb.e|
|00005100| 64 75 3e 20 77 72 69 74 | 65 73 2c 20 22 57 65 20 |du> writ|es, "We |
|00005110| 68 61 76 65 20 62 65 65 | 6e 0d 77 6f 72 6b 69 6e |have bee|n.workin|
|00005120| 67 20 6f 6e 20 74 68 65 | 20 70 72 6f 62 6c 65 6d |g on the| problem|
|00005130| 20 6f 66 20 73 79 6e 63 | 68 72 6f 6e 69 7a 69 6e | of sync|hronizin|
|00005140| 67 20 74 77 6f 20 76 69 | 64 65 6f 20 63 61 72 64 |g two vi|deo card|
|00005150| 73 2e 20 46 6f 72 20 74 | 68 65 20 41 70 70 6c 65 |s. For t|he Apple|
|00005160| 20 38 a5 32 34 20 63 61 | 72 64 0d 28 72 65 76 20 | 8.24 ca|rd.(rev |
|00005170| 42 29 2c 20 77 65 20 68 | 61 76 65 20 61 20 73 69 |B), we h|ave a si|
|00005180| 6d 70 6c 65 20 68 61 72 | 64 77 61 72 64 20 73 6f |mple har|dward so|
|00005190| 6c 75 74 69 6f 6e 2e 20 | 49 74 20 74 75 72 6e 73 |lution. |It turns|
|000051a0| 20 6f 75 74 20 79 6f 75 | 20 63 61 6e 20 63 75 74 | out you| can cut|
|000051b0| 20 74 68 65 20 63 6c 6f | 63 6b 0d 74 72 61 63 65 | the clo|ck.trace|
|000051c0| 20 61 6e 64 20 70 75 73 | 68 20 74 68 65 20 63 6c | and pus|h the cl|
|000051d0| 6f 63 6b 20 73 69 67 6e | 61 6c 20 74 68 72 6f 75 |ock sign|al throu|
|000051e0| 67 68 20 61 20 66 61 73 | 74 20 4f 52 20 67 61 74 |gh a fas|t OR gat|
|000051f0| 65 2e 20 20 53 6f 6d 65 | 77 68 61 74 20 74 6f 20 |e. Some|what to |
|00005200| 6d 79 0d 73 75 72 70 72 | 69 73 65 2c 20 79 6f 75 |my.surpr|ise, you|
|00005210| 20 63 61 6e 20 68 6f 6c | 64 20 74 68 65 20 63 6c | can hol|d the cl|
|00005220| 6f 63 6b 20 66 6f 72 20 | 61 73 20 6c 6f 6e 67 20 |ock for |as long |
|00005230| 61 73 20 79 6f 75 20 6c | 69 6b 65 20 77 69 74 68 |as you l|ike with|
|00005240| 6f 75 74 20 63 68 61 6e | 67 69 6e 67 20 74 68 65 |out chan|ging the|
|00005250| 0d 73 74 61 74 65 20 6f | 66 20 74 68 65 20 62 6f |.state o|f the bo|
|00005260| 61 72 64 2e 20 20 57 68 | 65 6e 20 79 6f 75 20 72 |ard. Wh|en you r|
|00005270| 65 6c 65 61 73 65 20 74 | 68 65 20 63 6c 6f 63 6b |elease t|he clock|
|00005280| 2c 20 74 68 65 20 73 79 | 6e 63 20 69 73 20 73 68 |, the sy|nc is sh|
|00005290| 69 66 74 65 64 20 62 79 | 20 74 68 65 0d 61 6d 6f |ifted by| the.amo|
|000052a0| 75 6e 74 20 6f 66 20 74 | 69 6d 65 20 79 6f 75 20 |unt of t|ime you |
|000052b0| 68 65 6c 64 20 74 68 65 | 20 63 6c 6f 63 6b 2e 20 |held the| clock. |
|000052c0| 54 68 65 20 38 a5 32 34 | 20 63 61 72 64 73 20 61 |The 8.24| cards a|
|000052d0| 72 65 20 4f 4b 2e 20 20 | 54 68 65 79 20 77 69 6c |re OK. |They wil|
|000052e0| 6c 20 64 72 69 76 65 20 | 61 20 31 36 22 0d 6d 6f |l drive |a 16".mo|
|000052f0| 6e 69 74 6f 72 20 61 6e | 64 20 53 65 74 45 6e 74 |nitor an|d SetEnt|
|00005300| 72 69 65 73 51 75 69 63 | 6b 6c 79 20 77 6f 72 6b |riesQuic|kly work|
|00005310| 73 20 66 61 73 74 2e 20 | 54 68 65 79 20 63 6f 73 |s fast. |They cos|
|00005320| 74 20 24 32 33 39 20 75 | 73 65 64 2e 20 54 68 65 |t $239 u|sed. The|
|00005330| 72 65 20 6d 61 79 20 62 | 65 20 61 0d 73 6f 66 74 |re may b|e a.soft|
|00005340| 77 61 72 65 20 73 6f 6c | 75 74 69 6f 6e 20 6c 69 |ware sol|ution li|
|00005350| 6b 65 20 74 68 65 20 6f | 6e 65 20 79 6f 75 20 64 |ke the o|ne you d|
|00005360| 65 76 65 6c 6f 70 65 64 | 20 66 6f 72 20 74 68 65 |eveloped| for the|
|00005370| 20 54 6f 62 79 20 63 61 | 72 64 73 2c 20 62 75 74 | Toby ca|rds, but|
|00005380| 20 6d 79 20 67 75 79 0d | 73 74 72 75 67 67 6c 65 | my guy.|struggle|
|00005390| 64 20 77 69 74 68 20 69 | 74 20 66 6f 72 20 61 20 |d with i|t for a |
|000053a0| 77 68 69 6c 65 20 61 6e | 64 20 67 61 76 65 20 75 |while an|d gave u|
|000053b0| 70 2e 20 20 28 48 65 20 | 69 73 20 62 65 74 74 65 |p. (He |is bette|
|000053c0| 72 20 77 69 74 68 20 68 | 61 72 64 77 61 72 65 20 |r with h|ardware |
|000053d0| 74 68 61 6e 0d 73 6f 66 | 74 77 61 72 65 2c 20 77 |than.sof|tware, w|
|000053e0| 68 69 63 68 20 69 73 20 | 77 68 79 20 77 65 20 77 |hich is |why we w|
|000053f0| 65 6e 74 20 74 68 65 20 | 77 61 79 20 77 65 20 64 |ent the |way we d|
|00005400| 69 64 2e 29 22 0d 09 4b | 61 72 73 74 65 6e 20 53 |id.)"..K|arsten S|
|00005410| 2e 20 57 65 62 65 72 20 | 28 20 6b 61 72 73 74 65 |. Weber |( karste|
|00005420| 6e 40 6a 6f 68 6e 2e 62 | 65 72 6b 65 6c 65 79 2e |n@john.b|erkeley.|
|00005430| 65 64 75 29 20 61 64 64 | 73 2c 20 22 49 20 61 6d |edu) add|s, "I am|
|00005440| 20 77 6f 72 6b 69 6e 67 | 20 61 73 20 61 0d 70 72 | working| as a.pr|
|00005450| 6f 67 72 61 6d 6d 65 72 | 20 66 6f 72 20 50 72 6f |ogrammer| for Pro|
|00005460| 66 65 73 73 6f 72 20 4d | 61 72 74 69 6e 20 42 61 |fessor M|artin Ba|
|00005470| 6e 6b 73 20 61 74 20 74 | 68 65 20 55 6e 69 76 65 |nks at t|he Unive|
|00005480| 72 73 69 74 79 20 6f 66 | 20 43 61 6c 69 66 6f 72 |rsity of| Califor|
|00005490| 6e 69 61 20 61 74 0d 42 | 65 72 6b 65 6c 65 79 2e |nia at.B|erkeley.|
|000054a0| 20 57 65 20 68 61 76 65 | 20 72 65 63 65 6e 74 6c | We have| recentl|
|000054b0| 79 20 64 6f 6e 65 20 73 | 6f 6d 65 20 73 74 65 72 |y done s|ome ster|
|000054c0| 65 6f 20 6d 6f 74 69 6f | 6e 20 65 78 70 65 72 69 |eo motio|n experi|
|000054d0| 6d 65 6e 74 73 20 74 68 | 61 74 20 72 65 71 75 69 |ments th|at requi|
|000054e0| 72 65 64 0d 73 79 6e 63 | 68 72 6f 6e 69 7a 69 6e |red.sync|hronizin|
|000054f0| 67 20 74 77 6f 20 76 69 | 64 65 6f 20 63 61 72 64 |g two vi|deo card|
|00005500| 73 2e 20 49 20 72 65 61 | 64 20 69 6e 20 74 68 65 |s. I rea|d in the|
|00005510| 20 27 56 69 64 65 6f 20 | 54 6f 6f 6c 20 42 6f 78 | 'Video |Tool Box|
|00005520| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 27 0d | documen|tation'.|
|00005530| 61 62 6f 75 74 20 68 6f | 77 20 44 72 2e 20 42 72 |about ho|w Dr. Br|
|00005540| 61 69 6e 61 72 64 20 68 | 61 64 20 64 65 76 65 6c |ainard h|ad devel|
|00005550| 6f 70 65 64 20 61 20 68 | 61 72 64 77 61 72 65 20 |oped a h|ardware |
|00005560| 73 6f 6c 75 74 69 6f 6e | 20 66 6f 72 20 73 79 6e |solution| for syn|
|00005570| 63 68 72 6f 6e 69 7a 69 | 6e 67 20 74 77 6f 0d 38 |chronizi|ng two.8|
|00005580| 2a 32 34 20 63 61 72 64 | 73 2e 20 49 20 68 61 76 |*24 card|s. I hav|
|00005590| 65 20 73 69 6e 63 65 20 | 75 73 65 64 20 42 72 61 |e since |used Bra|
|000055a0| 69 6e 61 72 64 27 73 20 | 77 6f 72 6b 20 28 61 6e |inard's |work (an|
|000055b0| 64 20 63 6f 72 72 65 73 | 70 6f 6e 64 65 64 20 77 |d corres|ponded w|
|000055c0| 69 74 68 20 68 69 6d 0d | 66 72 65 71 75 65 6e 74 |ith him.|frequent|
|000055d0| 6c 79 29 20 74 6f 20 64 | 6f 20 74 68 65 20 73 61 |ly) to d|o the sa|
|000055e0| 6d 65 20 66 6f 72 20 6f | 75 72 20 6c 61 62 2c 20 |me for o|ur lab, |
|000055f0| 62 75 74 20 77 65 20 64 | 69 64 20 68 61 76 65 20 |but we d|id have |
|00005600| 73 6f 6d 65 20 74 72 6f | 75 62 6c 65 73 20 77 69 |some tro|ubles wi|
|00005610| 74 68 20 68 69 73 0d 61 | 70 70 72 6f 61 63 68 20 |th his.a|pproach |
|00005620| 70 72 69 6d 61 72 69 6c | 79 20 62 65 63 61 75 73 |primaril|y becaus|
|00005630| 65 20 77 65 20 61 72 65 | 20 75 73 69 6e 67 20 6c |e we are| using l|
|00005640| 61 72 67 65 72 20 6d 6f | 6e 69 74 6f 72 73 2e 20 |arger mo|nitors. |
|00005650| 54 68 65 73 65 20 70 72 | 6f 62 6c 65 6d 73 20 68 |These pr|oblems h|
|00005660| 61 76 65 0d 62 65 65 6e | 20 73 6f 6c 76 65 64 20 |ave.been| solved |
|00005670| 69 6e 20 61 20 6e 69 63 | 65 20 77 61 79 2c 20 61 |in a nic|e way, a|
|00005680| 73 20 64 65 73 63 72 69 | 62 65 64 20 62 65 6c 6f |s descri|bed belo|
|00005690| 77 2e 0d 20 20 20 20 46 | 69 72 73 74 20 49 20 74 |w.. F|irst I t|
|000056a0| 72 69 65 64 20 74 68 65 | 20 61 70 70 72 6f 61 63 |ried the| approac|
|000056b0| 68 20 74 68 61 74 20 42 | 72 61 69 6e 61 72 64 20 |h that B|rainard |
|000056c0| 68 61 64 20 73 75 63 63 | 65 73 73 66 75 6c 6c 79 |had succ|essfully|
|000056d0| 20 69 6d 70 6c 65 6d 65 | 6e 74 65 64 0d 65 61 72 | impleme|nted.ear|
|000056e0| 6c 69 65 72 2c 20 69 2e | 65 2e 20 61 20 74 72 61 |lier, i.|e. a tra|
|000056f0| 6e 73 69 73 74 6f 72 20 | 74 6f 20 73 74 6f 70 20 |nsistor |to stop |
|00005700| 74 68 65 20 63 6c 6f 63 | 6b 20 6f 66 20 74 68 65 |the cloc|k of the|
|00005710| 20 76 69 64 65 6f 20 62 | 6f 61 72 64 2e 20 41 66 | video b|oard. Af|
|00005720| 74 65 72 20 73 6f 6c 64 | 65 72 69 6e 67 0d 74 68 |ter sold|ering.th|
|00005730| 65 20 74 72 61 6e 73 69 | 73 74 6f 72 20 6f 6e 20 |e transi|stor on |
|00005740| 74 68 65 20 62 6f 61 72 | 64 2c 20 49 20 74 65 73 |the boar|d, I tes|
|00005750| 74 65 64 20 69 74 2c 20 | 61 6e 64 20 69 74 20 77 |ted it, |and it w|
|00005760| 6f 72 6b 65 64 20 66 69 | 6e 65 2e 20 54 68 65 72 |orked fi|ne. Ther|
|00005770| 65 20 69 73 2c 20 68 6f | 77 65 76 65 72 2c 0d 61 |e is, ho|wever,.a|
|00005780| 20 70 72 6f 62 6c 65 6d | 20 77 69 74 68 20 74 68 | problem| with th|
|00005790| 69 73 20 61 70 70 72 6f | 61 63 68 2e 20 49 74 20 |is appro|ach. It |
|000057a0| 6f 6e 6c 79 20 77 6f 72 | 6b 73 20 66 6f 72 20 31 |only wor|ks for 1|
|000057b0| 33 22 20 61 6e 64 20 31 | 36 22 20 6d 6f 6e 69 74 |3" and 1|6" monit|
|000057c0| 6f 72 73 2e 20 57 68 65 | 6e 20 49 0d 73 74 61 72 |ors. Whe|n I.star|
|000057d0| 74 65 64 20 75 73 69 6e | 67 20 6f 75 72 20 32 31 |ted usin|g our 21|
|000057e0| 22 20 6d 6f 6e 69 74 6f | 72 73 2c 20 73 74 6f 70 |" monito|rs, stop|
|000057f0| 70 69 6e 67 20 74 68 65 | 20 63 6c 6f 63 6b 20 68 |ping the| clock h|
|00005800| 61 64 20 6e 6f 20 65 66 | 66 65 63 74 20 6f 6e 20 |ad no ef|fect on |
|00005810| 74 68 65 20 76 69 64 65 | 6f 0d 6f 75 74 70 75 74 |the vide|o.output|
|00005820| 20 77 68 61 74 73 6f 65 | 76 65 72 21 20 54 68 65 | whatsoe|ver! The|
|00005830| 72 65 20 69 73 20 6d 6f | 72 65 20 74 68 61 6e 20 |re is mo|re than |
|00005840| 6f 6e 65 20 63 6c 6f 63 | 6b 20 6f 6e 20 74 68 65 |one cloc|k on the|
|00005850| 20 76 69 64 65 6f 20 62 | 6f 61 72 64 2c 20 61 6e | video b|oard, an|
|00005860| 64 20 69 74 20 74 75 72 | 6e 73 0d 6f 75 74 20 74 |d it tur|ns.out t|
|00005870| 68 61 74 20 32 31 22 20 | 6d 6f 6e 69 74 6f 72 73 |hat 21" |monitors|
|00005880| 20 63 61 6e 20 62 65 20 | 73 79 6e 63 68 72 6f 6e | can be |synchron|
|00005890| 69 7a 65 64 20 62 79 20 | 73 74 6f 70 70 69 6e 67 |ized by |stopping|
|000058a0| 20 74 68 65 20 66 61 73 | 74 65 73 74 20 6f 66 20 | the fas|test of |
|000058b0| 74 68 65 20 63 6c 6f 63 | 6b 73 2e 0d 55 73 69 6e |the cloc|ks..Usin|
|000058c0| 67 20 74 68 65 20 32 31 | 22 20 6d 6f 6e 69 74 6f |g the 21|" monito|
|000058d0| 72 20 61 6e 64 20 74 68 | 65 20 38 2a 32 34 20 76 |r and th|e 8*24 v|
|000058e0| 69 64 65 6f 20 62 6f 61 | 72 64 20 67 69 76 65 73 |ideo boa|rd gives|
|000058f0| 20 61 20 6d 61 78 69 6d | 75 6d 20 6f 66 20 32 35 | a maxim|um of 25|
|00005900| 36 20 63 6f 6c 6f 72 73 | 2e 0d 20 20 20 20 53 65 |6 colors|.. Se|
|00005910| 63 6f 6e 64 6c 79 20 49 | 20 69 6d 70 6c 65 6d 65 |condly I| impleme|
|00005920| 6e 74 65 64 20 61 20 6e | 69 63 65 20 73 6f 66 74 |nted a n|ice soft|
|00005930| 77 61 72 65 20 61 70 70 | 72 6f 61 63 68 20 74 6f |ware app|roach to|
|00005940| 20 73 79 6e 63 68 72 6f | 6e 69 7a 65 20 74 68 65 | synchro|nize the|
|00005950| 0d 6d 6f 6e 69 74 6f 72 | 73 2e 20 42 79 20 6c 6f |.monitor|s. By lo|
|00005960| 6f 6b 69 6e 67 20 61 74 | 20 74 68 65 20 56 42 4c |oking at| the VBL|
|00005970| 73 20 66 6f 72 20 62 6f | 74 68 20 62 6f 61 72 64 |s for bo|th board|
|00005980| 73 20 49 20 73 61 77 20 | 74 68 61 74 20 74 68 65 |s I saw |that the|
|00005990| 79 20 6f 6e 6c 79 20 73 | 74 61 79 20 69 6e 0d 73 |y only s|tay in.s|
|000059a0| 79 6e 63 20 66 6f 72 20 | 61 20 66 65 77 20 73 65 |ync for |a few se|
|000059b0| 63 6f 6e 64 73 2e 20 54 | 68 69 73 20 6d 65 61 6e |conds. T|his mean|
|000059c0| 73 20 74 68 61 74 20 69 | 74 20 69 73 20 6e 65 63 |s that i|t is nec|
|000059d0| 65 73 73 61 72 79 20 74 | 6f 20 73 79 6e 63 68 72 |essary t|o synchr|
|000059e0| 6f 6e 69 7a 65 20 74 68 | 65 20 76 69 64 65 6f 0d |onize th|e video.|
|000059f0| 62 6f 61 72 64 73 20 62 | 65 66 6f 72 65 20 65 76 |boards b|efore ev|
|00005a00| 65 72 79 20 74 72 69 61 | 6c 2c 20 6f 66 20 77 68 |ery tria|l, of wh|
|00005a10| 69 63 68 20 74 68 65 72 | 65 20 63 61 6e 20 62 65 |ich ther|e can be|
|00005a20| 20 68 75 6e 64 72 65 64 | 73 2e 20 49 74 20 69 73 | hundred|s. It is|
|00005a30| 20 74 68 65 72 65 66 6f | 72 65 0d 64 65 73 69 72 | therefo|re.desir|
|00005a40| 61 62 6c 65 20 74 6f 20 | 68 61 76 65 20 61 20 66 |able to |have a f|
|00005a50| 61 73 74 20 61 6e 64 20 | 65 61 73 79 20 77 61 79 |ast and |easy way|
|00005a60| 20 20 74 6f 20 73 79 6e | 63 68 72 6f 6e 69 7a 65 | to syn|chronize|
|00005a70| 20 74 68 65 20 62 6f 61 | 72 64 73 2e 20 49 20 63 | the boa|rds. I c|
|00005a80| 61 6d 65 20 75 70 20 77 | 69 74 68 0d 61 20 77 61 |ame up w|ith.a wa|
|00005a90| 79 20 66 6f 72 20 64 6f | 69 6e 67 20 74 68 65 20 |y for do|ing the |
|00005aa0| 73 79 6e 63 68 72 6f 6e | 69 7a 61 74 69 6f 6e 20 |synchron|ization |
|00005ab0| 74 68 61 74 20 64 6f 65 | 73 20 6e 6f 74 20 72 65 |that doe|s not re|
|00005ac0| 71 75 69 72 65 20 70 68 | 6f 74 6f 6d 65 74 65 72 |quire ph|otometer|
|00005ad0| 73 20 61 6e 64 20 61 0d | 73 63 6f 70 65 20 28 61 |s and a.|scope (a|
|00005ae0| 73 20 69 73 20 72 65 71 | 75 69 72 65 64 20 69 6e |s is req|uired in|
|00005af0| 20 44 72 2e 20 42 72 61 | 69 6e 61 72 64 27 73 20 | Dr. Bra|inard's |
|00005b00| 61 70 70 72 6f 61 63 68 | 29 2e 20 54 68 65 20 69 |approach|). The i|
|00005b10| 64 65 61 20 69 73 20 74 | 68 65 20 66 6f 6c 6c 6f |dea is t|he follo|
|00005b20| 77 69 6e 67 3a 0d 54 68 | 65 20 68 61 72 64 77 61 |wing:.Th|e hardwa|
|00005b30| 72 65 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 20 |re modif|ication |
|00005b40| 69 73 20 69 6e 73 74 61 | 6c 6c 65 64 20 6f 6e 20 |is insta|lled on |
|00005b50| 62 6f 74 68 20 76 69 64 | 65 6f 20 62 6f 61 72 64 |both vid|eo board|
|00005b60| 73 20 28 72 61 74 68 65 | 72 20 74 68 61 6e 20 6a |s (rathe|r than j|
|00005b70| 75 73 74 0d 6f 6e 65 29 | 2e 20 41 20 56 42 4c 20 |ust.one)|. A VBL |
|00005b80| 69 6e 74 65 72 72 75 70 | 74 20 72 6f 75 74 69 6e |interrup|t routin|
|00005b90| 65 20 69 73 20 77 72 69 | 74 74 65 6e 20 66 6f 72 |e is wri|tten for|
|00005ba0| 20 65 61 63 68 20 62 6f | 61 72 64 2e 20 57 68 65 | each bo|ard. Whe|
|00005bb0| 6e 20 61 20 56 42 4c 20 | 6f 63 63 75 72 73 20 6f |n a VBL |occurs o|
|00005bc0| 6e 0d 74 68 65 20 6c 65 | 66 74 20 76 69 64 65 6f |n.the le|ft video|
|00005bd0| 20 62 6f 61 72 64 2c 20 | 74 68 65 20 6c 65 66 74 | board, |the left|
|00005be0| 20 69 6e 74 65 72 72 75 | 70 74 20 72 6f 75 74 69 | interru|pt routi|
|00005bf0| 6e 65 20 69 73 20 61 63 | 74 69 76 61 74 65 64 2c |ne is ac|tivated,|
|00005c00| 20 61 6e 64 20 74 68 69 | 73 20 72 6f 75 74 69 6e | and thi|s routin|
|00005c10| 65 0d 73 74 6f 70 73 20 | 74 68 65 20 63 6c 6f 63 |e.stops |the cloc|
|00005c20| 6b 20 66 6f 72 20 74 68 | 65 20 6c 65 66 74 20 76 |k for th|e left v|
|00005c30| 69 64 65 6f 20 62 6f 61 | 72 64 20 28 69 74 20 64 |ideo boa|rd (it d|
|00005c40| 6f 65 73 20 74 68 69 73 | 20 62 79 20 63 6f 6e 74 |oes this| by cont|
|00005c50| 72 6f 6c 6c 69 6e 67 20 | 74 68 65 0d 68 61 72 64 |rolling |the.hard|
|00005c60| 77 61 72 65 20 74 68 61 | 74 20 77 61 73 20 61 64 |ware tha|t was ad|
|00005c70| 64 65 64 20 6f 6e 20 74 | 68 65 20 62 6f 61 72 64 |ded on t|he board|
|00005c80| 29 2e 20 54 68 69 73 20 | 6d 65 61 6e 73 20 74 68 |). This |means th|
|00005c90| 61 74 20 74 68 65 20 76 | 69 64 65 6f 20 62 6f 61 |at the v|ideo boa|
|00005ca0| 72 64 20 69 73 0d 73 74 | 6f 70 70 65 64 20 65 78 |rd is.st|opped ex|
|00005cb0| 61 63 74 6c 79 20 61 74 | 20 56 42 4c 20 74 69 6d |actly at| VBL tim|
|00005cc0| 65 2e 20 54 68 65 20 73 | 61 6d 65 20 70 72 6f 63 |e. The s|ame proc|
|00005cd0| 65 64 75 72 65 20 69 73 | 20 64 6f 6e 65 20 77 69 |edure is| done wi|
|00005ce0| 74 68 20 74 68 65 20 72 | 69 67 68 74 20 76 69 64 |th the r|ight vid|
|00005cf0| 65 6f 0d 62 6f 61 72 64 | 3a 20 20 54 68 65 20 69 |eo.board|: The i|
|00005d00| 6e 74 65 72 72 75 70 74 | 20 66 72 6f 6d 20 74 68 |nterrupt| from th|
|00005d10| 65 20 72 69 67 68 74 20 | 76 69 64 65 6f 20 62 6f |e right |video bo|
|00005d20| 61 72 64 20 61 63 74 69 | 76 61 74 65 64 20 74 68 |ard acti|vated th|
|00005d30| 65 20 72 69 67 68 74 20 | 69 6e 74 65 72 72 75 70 |e right |interrup|
|00005d40| 74 0d 72 6f 75 74 69 6e | 65 20 74 68 61 74 20 73 |t.routin|e that s|
|00005d50| 74 6f 70 73 20 74 68 65 | 20 72 69 67 68 74 20 76 |tops the| right v|
|00005d60| 69 64 65 6f 20 62 6f 61 | 72 64 2e 20 49 6e 20 74 |ideo boa|rd. In t|
|00005d70| 68 69 73 20 77 61 79 20 | 62 6f 74 68 20 76 69 64 |his way |both vid|
|00005d80| 65 6f 20 62 6f 61 72 64 | 73 20 67 65 74 0d 73 74 |eo board|s get.st|
|00005d90| 6f 70 70 65 64 20 61 74 | 20 74 68 65 20 74 69 6d |opped at| the tim|
|00005da0| 65 20 61 73 20 74 68 65 | 69 72 20 72 65 73 70 65 |e as the|ir respe|
|00005db0| 63 74 69 76 65 20 56 42 | 4c 73 2e 20 54 68 65 20 |ctive VB|Ls. The |
|00005dc0| 6d 61 69 6e 20 70 72 6f | 67 72 61 6d 20 69 73 20 |main pro|gram is |
|00005dd0| 73 74 69 6c 6c 20 72 75 | 6e 6e 69 6e 67 0d 61 6e |still ru|nning.an|
|00005de0| 64 20 77 68 65 6e 20 69 | 74 20 64 65 74 65 63 74 |d when i|t detect|
|00005df0| 73 20 74 68 61 74 20 62 | 6f 74 68 20 76 69 64 65 |s that b|oth vide|
|00005e00| 6f 20 63 61 72 64 73 20 | 68 61 76 65 20 73 74 6f |o cards |have sto|
|00005e10| 70 70 65 64 2c 20 69 74 | 20 61 63 74 69 76 61 74 |pped, it| activat|
|00005e20| 65 73 20 74 68 65 6d 0d | 73 69 6d 75 6c 74 61 6e |es them.|simultan|
|00005e30| 65 6f 75 73 6c 79 2c 20 | 61 6e 64 20 74 68 65 20 |eously, |and the |
|00005e40| 74 77 6f 20 76 69 64 65 | 6f 20 62 6f 61 72 64 73 |two vide|o boards|
|00005e50| 20 61 72 65 20 6e 6f 77 | 20 69 6e 20 73 79 6e 63 | are now| in sync|
|00005e60| 68 2e 20 20 54 68 69 73 | 20 6d 65 61 6e 73 20 74 |h. This| means t|
|00005e70| 68 61 74 0d 73 79 6e 63 | 68 72 6f 6e 69 7a 61 74 |hat.sync|hronizat|
|00005e80| 69 6f 6e 20 63 61 6e 20 | 62 65 20 64 6f 6e 65 20 |ion can |be done |
|00005e90| 62 79 20 63 61 6c 6c 69 | 6e 67 20 6f 6e 65 20 66 |by calli|ng one f|
|00005ea0| 75 6e 63 74 69 6f 6e 2c | 20 61 6e 64 20 74 68 65 |unction,| and the|
|00005eb0| 20 74 69 6d 65 20 69 74 | 20 74 61 6b 65 73 20 74 | time it| takes t|
|00005ec0| 6f 0d 73 79 6e 63 68 72 | 6f 6e 69 7a 65 20 74 68 |o.synchr|onize th|
|00005ed0| 65 20 76 69 64 65 6f 20 | 62 6f 61 72 64 73 20 69 |e video |boards i|
|00005ee0| 73 20 6c 65 73 73 20 74 | 68 61 6e 20 74 68 65 20 |s less t|han the |
|00005ef0| 74 69 6d 65 20 62 65 74 | 77 65 65 6e 20 74 68 65 |time bet|ween the|
|00005f00| 20 74 77 6f 20 56 42 4c | 73 2e 20 49 27 6d 0d 75 | two VBL|s. I'm.u|
|00005f10| 73 69 6e 67 20 44 54 52 | 20 6f 66 20 74 68 65 20 |sing DTR| of the |
|00005f20| 6d 6f 64 65 6d 20 61 6e | 64 20 70 72 69 6e 74 65 |modem an|d printe|
|00005f30| 72 20 70 6f 72 74 20 74 | 6f 20 63 6f 6e 74 72 6f |r port t|o contro|
|00005f40| 6c 20 74 68 65 20 68 61 | 72 64 77 61 72 65 2e 22 |l the ha|rdware."|
|00005f50| 0d 0d 42 42 2e 20 4d 4f | 52 45 20 4f 4e 20 49 4e |..BB. MO|RE ON IN|
|00005f60| 54 45 52 52 55 50 54 53 | 0d 0d 4d 69 63 68 61 65 |TERRUPTS|..Michae|
|00005f70| 6c 20 42 61 63 68 2c 20 | 62 61 63 68 40 73 75 6e |l Bach, |bach@sun|
|00005f80| 31 2e 72 75 66 2e 75 6e | 69 2d 66 72 65 69 62 75 |1.ruf.un|i-freibu|
|00005f90| 72 67 2e 64 65 2c 20 77 | 72 69 74 65 73 2c 20 22 |rg.de, w|rites, "|
|00005fa0| 57 65 20 61 72 65 20 74 | 72 79 69 6e 67 20 74 6f |We are t|rying to|
|00005fb0| 20 64 6f 0d 73 69 6d 75 | 6c 74 61 6e 65 6f 75 73 | do.simu|ltaneous|
|00005fc0| 20 76 69 73 75 61 6c 20 | 73 74 69 6d 75 6c 61 74 | visual |stimulat|
|00005fd0| 69 6f 6e 20 61 6e 64 20 | 61 6e 61 6c 6f 67 20 6d |ion and |analog m|
|00005fe0| 65 61 73 75 72 65 6d 65 | 6e 74 20 6f 66 20 62 72 |easureme|nt of br|
|00005ff0| 61 69 6e 20 70 6f 74 65 | 6e 74 69 61 6c 73 20 6f |ain pote|ntials o|
|00006000| 6e 0d 74 68 65 20 73 61 | 6d 65 20 4d 61 63 69 6e |n.the sa|me Macin|
|00006010| 74 6f 73 68 2e 20 4f 6e | 65 20 6f 66 20 6f 75 72 |tosh. On|e of our|
|00006020| 20 69 64 65 61 73 20 77 | 61 73 20 74 6f 20 75 73 | ideas w|as to us|
|00006030| 65 20 74 68 65 20 54 69 | 6d 65 20 4d 61 6e 61 67 |e the Ti|me Manag|
|00006040| 65 72 20 74 6f 20 74 72 | 69 67 67 65 72 0d 61 6e |er to tr|igger.an|
|00006050| 61 6c 6f 67 20 6d 65 61 | 73 75 72 65 6d 65 6e 74 |alog mea|surement|
|00006060| 20 65 76 65 72 79 20 32 | 20 6d 73 20 69 6e 20 69 | every 2| ms in i|
|00006070| 74 73 20 69 6e 74 65 72 | 72 75 70 74 20 73 65 72 |ts inter|rupt ser|
|00006080| 76 69 63 65 20 72 6f 75 | 74 69 6e 65 2e 20 54 68 |vice rou|tine. Th|
|00006090| 69 73 20 77 6f 72 6b 73 | 20 66 69 6e 65 0d 75 6e |is works| fine.un|
|000060a0| 6c 65 73 73 20 77 65 20 | 75 73 65 20 61 6e 69 6d |less we |use anim|
|000060b0| 61 74 65 20 70 61 6c 65 | 74 74 65 20 28 6f 72 20 |ate pale|tte (or |
|000060c0| 47 44 53 65 74 45 6e 74 | 72 69 65 73 20 6f 72 20 |GDSetEnt|ries or |
|000060d0| 47 44 53 65 74 47 61 6d | 6d 61 29 3a 20 4e 6f 20 |GDSetGam|ma): No |
|000060e0| 74 69 6d 65 72 20 74 61 | 73 6b 73 0d 61 72 65 20 |timer ta|sks.are |
|000060f0| 73 65 72 76 69 63 65 64 | 20 75 6e 74 69 6c 20 76 |serviced| until v|
|00006100| 62 6c 2e 20 41 70 70 61 | 72 65 6e 74 6c 79 20 74 |bl. Appa|rently t|
|00006110| 68 65 20 76 69 64 65 6f | 20 64 72 69 76 65 72 20 |he video| driver |
|00006120| 67 6f 65 73 20 69 6e 74 | 6f 20 61 20 74 69 67 68 |goes int|o a tigh|
|00006130| 74 20 6c 6f 6f 70 2c 0d | 70 6f 6c 6c 69 6e 67 20 |t loop,.|polling |
|00006140| 61 20 76 62 6c 20 66 6c | 61 67 2c 20 77 69 74 68 |a vbl fl|ag, with|
|00006150| 20 69 6e 74 65 72 72 75 | 70 74 73 20 73 77 69 74 | interru|pts swit|
|00006160| 63 68 65 64 20 6f 66 66 | 21 20 43 61 6e 20 74 68 |ched off|! Can th|
|00006170| 69 73 20 62 65 20 74 72 | 75 65 3f 20 54 68 69 73 |is be tr|ue? This|
|00006180| 20 77 6f 75 6c 64 0d 62 | 65 20 61 20 73 74 72 6f | would.b|e a stro|
|00006190| 6e 67 20 73 65 74 62 61 | 63 6b 20 66 6f 72 20 75 |ng setba|ck for u|
|000061a0| 73 69 6e 67 20 74 68 65 | 20 4d 61 63 20 66 6f 72 |sing the| Mac for|
|000061b0| 20 74 68 69 73 20 73 6f | 72 74 20 6f 66 20 77 6f | this so|rt of wo|
|000061c0| 72 6b 2e 22 20 59 65 73 | 2c 20 61 6c 61 73 2c 20 |rk." Yes|, alas, |
|000061d0| 74 68 65 0d 6e 6f 72 6d | 61 6c 20 62 65 68 61 76 |the.norm|al behav|
|000061e0| 69 6f 72 20 66 6f 72 20 | 69 6e 74 65 72 72 75 70 |ior for |interrup|
|000061f0| 74 20 73 65 72 76 69 63 | 65 20 72 6f 75 74 69 6e |t servic|e routin|
|00006200| 65 73 20 61 6e 64 20 74 | 68 65 20 64 72 69 76 65 |es and t|he drive|
|00006210| 72 20 43 6f 6e 74 72 6f | 6c 20 63 61 6c 6c 73 20 |r Contro|l calls |
|00006220| 6f 6e 0d 74 68 65 20 4d | 61 63 20 69 73 20 74 6f |on.the M|ac is to|
|00006230| 20 73 75 73 70 65 6e 64 | 20 61 6c 6c 20 69 6e 74 | suspend| all int|
|00006240| 65 72 72 75 70 74 73 20 | 75 6e 74 69 6c 20 72 65 |errupts |until re|
|00006250| 74 75 72 6e 69 6e 67 2e | 20 4d 6f 73 74 20 76 69 |turning.| Most vi|
|00006260| 64 65 6f 20 63 61 72 64 | 20 64 72 69 76 65 72 73 |deo card| drivers|
|00006270| 0d 77 61 69 74 20 66 6f | 72 20 76 62 6c 2c 20 61 |.wait fo|r vbl, a|
|00006280| 73 20 4d 69 63 68 61 65 | 6c 20 73 61 79 73 2e 20 |s Michae|l says. |
|00006290| 48 6f 77 65 76 65 72 2c | 20 54 72 75 65 56 69 73 |However,| TrueVis|
|000062a0| 69 6f 6e 27 73 20 4e 75 | 56 69 73 74 61 20 72 65 |ion's Nu|Vista re|
|000062b0| 74 75 72 6e 73 0d 69 6d | 6d 65 64 69 61 74 65 6c |turns.im|mediatel|
|000062c0| 79 2c 20 6c 65 74 74 69 | 6e 67 20 74 68 65 20 76 |y, letti|ng the v|
|000062d0| 69 64 65 6f 20 63 61 72 | 64 20 70 72 6f 63 65 73 |ideo car|d proces|
|000062e0| 73 6f 72 20 64 6f 20 74 | 68 65 20 77 6f 72 6b 20 |sor do t|he work |
|000062f0| 6c 61 74 65 72 2c 20 61 | 74 20 76 62 6c 20 74 69 |later, a|t vbl ti|
|00006300| 6d 65 2e 0d 41 6e 64 20 | 53 65 74 45 6e 74 72 69 |me..And |SetEntri|
|00006310| 65 73 51 75 69 63 6b 6c | 79 2e 63 2c 20 66 6f 72 |esQuickl|y.c, for|
|00006320| 20 74 68 65 20 66 65 77 | 20 64 65 76 69 63 65 73 | the few| devices|
|00006330| 20 74 68 61 74 20 69 74 | 20 73 75 70 70 6f 72 74 | that it| support|
|00006340| 73 2c 20 61 6c 6c 6f 77 | 73 20 79 6f 75 20 74 6f |s, allow|s you to|
|00006350| 0d 61 63 68 69 65 76 65 | 20 77 68 61 74 65 76 65 |.achieve| whateve|
|00006360| 72 20 62 65 68 61 76 69 | 6f 72 20 79 6f 75 20 77 |r behavi|or you w|
|00006370| 61 6e 74 2e 20 54 68 6f | 73 65 20 73 6f 6c 75 74 |ant. Tho|se solut|
|00006380| 69 6f 6e 73 20 77 69 6c | 6c 20 6d 61 6b 65 20 79 |ions wil|l make y|
|00006390| 6f 75 72 20 63 6f 64 65 | 20 68 69 67 68 6c 79 0d |our code| highly.|
|000063a0| 64 65 70 65 6e 64 65 6e | 74 20 6f 6e 20 74 68 65 |dependen|t on the|
|000063b0| 20 70 61 72 74 69 63 75 | 6c 61 72 20 76 69 64 65 | particu|lar vide|
|000063c0| 6f 20 63 61 72 64 2e 20 | 4f 6e 65 20 73 6f 6c 75 |o card. |One solu|
|000063d0| 74 69 6f 6e 20 74 68 61 | 74 20 6d 69 67 68 74 20 |tion tha|t might |
|000063e0| 77 6f 72 6b 20 6f 6e 20 | 61 6c 6c 0d 76 69 64 65 |work on |all.vide|
|000063f0| 6f 20 63 61 72 64 73 20 | 77 6f 75 6c 64 20 62 65 |o cards |would be|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.